Skip to content

Use a separate config overlay for the desktop app #38193

Open

Description

@PaulRBerg

What variant of Codex are you using?

Codex App (desktop)

What feature would you like to see?

Please give the desktop app its own app-managed config overlay, for example $CODEX_HOME/config-desktop.toml (defaulting to ~/.codex/config-desktop.toml), instead of writing desktop state into the user-managed $CODEX_HOME/config.toml.

For desktop sessions, configuration should be loaded in this order:

  1. $CODEX_HOME/config.toml as the user defaults.
  2. $CODEX_HOME/config-desktop.toml as desktop-specific overrides.

When the same key exists in both files, the desktop overlay should win for the desktop app only. Desktop-originated writes—including feature availability, Computer Use hooks, migrations, and settings changed through the app—should target the overlay. The CLI should continue to use the user config without inheriting desktop-only state.

This preserves shared defaults across Codex surfaces while establishing a clear ownership boundary: users and their tooling own config.toml; the desktop app owns its overlay.

Additional information

The current shared-file behavior makes simply opening the app mutate global configuration and can change CLI behavior or create persistent config churn. Related reports demonstrate several variants of the same ownership problem:

The exact filename is not important; the important properties are separate storage, $CODEX_HOME awareness, deterministic merge precedence, and no desktop writes to the user-owned defaults file.

Activity

  1. added
    enhancement
    app
    config
    on Aug 12, 2026
  2. PaulRBerg commented on Sep 15, 2026

    @PaulRBerg
    Author

    This bit me again today: a CLI-specific Computer Use fix disappeared from the shared config, and the next native app request hung for five minutes. Having to rediscover a failure I had already fixed three days earlier is really frustrating.

    Environment: macOS on Apple Silicon, standalone Codex CLI 0.154.0, ChatGPT desktop 26.908.70816 (bundled CLI 0.154.0-alpha.6.2).

    What I verified:

    • On September 12, I configured cua_repl to launch through a small wrapper using Python's start_new_session=True, preserving standard streams and forwarding termination signals. This addressed a terminal-specific failure where native app calls could suspend the MCP process group with SIGTTOU. I also set tool_timeout_sec = 45.
    • By September 15, the shared ~/.codex/config.toml no longer contained that explicit cua_repl configuration. It had been replaced with a node_repl definition pointing directly into ChatGPT.app. The wrapper still exists, but the generated cua_repl transport doesn't use it, and the 45-second timeout is gone.
    • A cua.getApp("Helium") call then failed with timed out awaiting tools/call after 300s. A subsequent cua.getState() also remained pending until I aborted it.
    • Read-only process inspection showed the affected CUA process group and its children in state T (stopped), still attached to the CLI's controlling terminal, with a different foreground process group. This matches the failure mode the wrapper was intended to prevent; the stop signal itself wasn't captured this time.

    The config regression and stopped processes are verified. Desktop logs also show startup config/batchWrite activity, but I didn't capture the exact write that removed my override, so I'm not attributing that particular mutation to a specific internal component. Related reports describe the same shared-config ownership problem: generated CUA overrides being replaced and Desktop rewriting Computer Use enablement.

    Please give the desktop app its own config overlay and keep its generated runtime settings out of CLI-owned configuration. A working terminal setup shouldn't lose its launcher and timeout settings as these two clients reconcile the same file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appconfigenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions