Web Preview should support a configurable default URL for externally managed dev servers

Open 💬 1 comment Opened Jul 8, 2026 by bretreece

What variant of Codex are you using?

App

What feature would you like to see?

Summary

When using Codex Desktop with a project whose development server is managed outside of Codex, Web Preview should allow configuring the default URL that it opens.

My setup

  • Windows
  • Codex Desktop
  • Local project
  • CommandBox is started separately from a Windows batch file
  • Application runs at http://localhost:7777/

Codex is not responsible for starting the server.

Current behavior

Clicking Web Preview opens an internal localhost URL such as:

http://localhost:61634

However, if I choose Open in → Copy link, Codex copies:

http://localhost:7777/

This suggests Codex already knows the correct application URL, but Web Preview does not use it as its default.

Expected behavior

Please support one (or more) of the following:

  • Configure a default Web Preview URL per project.
  • Remember the last URL used for that project.
  • If an external dev server is already known or detected, open that instead of an internal/ephemeral localhost port.

A project configuration option such as the following would solve this cleanly:

preview_url = "http://localhost:7777/"

(or an equivalent UI setting).

Why this matters

Many developers don't have Codex launch their development server. Frameworks such as CommandBox, Vite, Next.js, React, ASP.NET, Docker, and others are commonly started independently.

Having Web Preview always open an unrelated localhost port adds unnecessary friction when the application is already running at a known URL.

Question

Is there currently a supported way to configure Codex Desktop's Web Preview default URL for a project? If not, please consider this a feature request.

Additional information

Summary

When using Codex Desktop with a project whose development server is managed outside of Codex, Web Preview should first attempt to open the same URL that Open in → Copy link provides.

My setup

  • Windows
  • Codex Desktop
  • Local project
  • CommandBox is started separately from a Windows batch file
  • Application runs at http://localhost:7777/

Codex is not responsible for starting the server.

Current behavior

Clicking Web Preview opens an internal localhost URL such as:

http://localhost:61634

However, choosing Open in → Copy link copies:

http://localhost:7777/

Since Codex is already able to determine the correct application URL, Web Preview appears to ignore that information and instead opens an internal/ephemeral localhost port.

Expected behavior

When Web Preview is opened, it should first attempt to open the same URL that Open in → Copy link returns.

If that URL is available, use it as the initial page.

Only if no application URL can be determined should Web Preview fall back to its current behavior.

Optionally, providing a per-project override for the preview URL would also be useful, but simply using the URL that Codex already knows would eliminate the extra navigation in many cases.

Why this matters

Many developers run their development server outside of Codex (CommandBox, Vite, Next.js, React, ASP.NET, Docker, etc.).

In these workflows, Codex already knows the correct application URL—as demonstrated by Open in → Copy link—yet Web Preview opens a different localhost port, requiring the user to manually navigate to the real application each time.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗