Skip to content

fix(adopt): the Codex client is not only the CLI - #110

Merged
fylorn merged 1 commit into
mainfrom
fix/codex-client-name
Sep 23, 2026
Merged

fylorn merged 1 commit into
mainfrom
fix/codex-client-name

Conversation

@fylorn

@fylorn fylorn commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

~/.codex/config.toml is one file behind two front ends: the codex CLI, and the copy bundled inside the ChatGPT desktop app (ChatGPT.app/Contents/Resources/codex — the same binary). The desktop app starts its app-server with no provider override, so model_provider in that file decides where its local sessions go.

Measured

Point model_provider at a local probe server, launch the ChatGPT desktop app, touch nothing:

=== GET /v1/models?client_version=0.153.4
  authorization: Bearer probe-token...
  originator: Codex Desktop
  user-agent: codex_exec/0.153.4 (Mac OS 26.6.2; arm64)

The app-server's argv confirms it: codex -c features.code_mode_host=true app-server --analytics-default-enabled -c mcp_servers.codex_app={…} — no provider override anywhere.

What changes

  • The client is named Codex, not "Codex CLI". A row labelled "Codex CLI" tells someone who installed only the desktop app about a CLI they do not have.
  • A new cost, adopt.cost.codex.chatgpt_desktop: adopting this file adopts the desktop app's local sessions too, and the app has to be restarted. Adoption quietly covering an app the confirmation dialog never named is the part worth saying before the user confirms, not after.
  • Same rename in the MCP target table.

Recorded but not acted on

0.153.4 issues GET /v1/models, which 0.139.0 did not — the comment in edits() said "not a single GET". Whether the returned list has any effect on the usable models is not measured, so adopt.cost.codex.model_list is left exactly as it is and the comment says why.

Checks

cargo fmt --check, cargo clippy --workspace --all-targets -D warnings, cargo test --workspace, ./scripts/smoke.sh (51 passed, 0 failed) all green locally.

🤖 Generated with Claude Code

`~/.codex/config.toml` is one file behind two front ends: the codex CLI,
and the copy bundled inside the ChatGPT desktop app
(`ChatGPT.app/Contents/Resources/codex` — the same binary). The desktop
app starts its app-server with no provider override, so `model_provider`
in that file decides where its local sessions go.

Measured: point `model_provider` at a local probe, launch the desktop
app and touch nothing, and the probe receives
`GET /v1/models?client_version=0.153.4` with `originator: Codex Desktop`
and the configured bearer token.

So a row labelled "Codex CLI" was telling someone who installed only the
desktop app about a CLI they do not have, and adopting it quietly
covered an app the confirmation dialog never named. The client is now
"Codex", and the cost list says the desktop app is adopted too and has
to be restarted for that to take effect.

Also recorded in a comment: 0.153.4 does issue `GET /v1/models`, which
0.139.0 did not. Whether that list has any effect is not measured, so
the `model_list` cost sentence is left as it is.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@fylorn
fylorn merged commit 0f346f0 into main Sep 23, 2026
1 check passed
@fylorn
fylorn deleted the fix/codex-client-name branch September 23, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant