Repository navigation
Description
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:
$CODEX_HOME/config.tomlas the user defaults.$CODEX_HOME/config-desktop.tomlas 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:
- Codex Desktop rewrites user notify hook through SkyComputerUseClient --previous-notify #28404
- “Codex Computer Use” is damaged and can’t be opened after Mac restart #28184
- Desktop app rewrites removed feature flag js_repl into config.toml on every startup #24387
- macOS Computer Use ignores CODEX_HOME and recreates ~/.codex/config.toml #33635
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
github-actions commentedon Aug 12, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
PaulRBerg commentedon Sep 15, 2026
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 desktop26.908.70816(bundled CLI0.154.0-alpha.6.2).What I verified:
cua_replto launch through a small wrapper using Python'sstart_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 withSIGTTOU. I also settool_timeout_sec = 45.~/.codex/config.tomlno longer contained that explicitcua_replconfiguration. It had been replaced with anode_repldefinition pointing directly into ChatGPT.app. The wrapper still exists, but the generatedcua_repltransport doesn't use it, and the 45-second timeout is gone.cua.getApp("Helium")call then failed withtimed out awaiting tools/call after 300s. A subsequentcua.getState()also remained pending until I aborted it.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/batchWriteactivity, 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.