Repository navigation
fix(adopt): the Codex client is not only the CLI - #110
Merged
Merged
Conversation
`~/.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>
This was referenced Sep 23, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
~/.codex/config.tomlis 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, somodel_providerin that file decides where its local sessions go.Measured
Point
model_providerat a local probe server, launch the ChatGPT desktop app, touch nothing: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
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.Recorded but not acted on
0.153.4 issues
GET /v1/models, which 0.139.0 did not — the comment inedits()said "not a single GET". Whether the returned list has any effect on the usable models is not measured, soadopt.cost.codex.model_listis 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