Repository navigation
Conversation
Claude Code's --model flag now documents 'fable' alongside 'opus' and 'sonnet' as an alias for the latest model of that family. Expose it next to the existing haiku/sonnet/opus constants in Go, Rust, Node, Python and .NET, and list it wherever the docs enumerate the aliases.
Add Effort/effort to the run request in Go, Rust, Node, Python and .NET. Codex receives it as -c model_reasoning_effort="<level>" on new runs and on resume, Claude Code as --effort <level>, and the grok agent rejects it with an invalid-request error, like every other option Grok has no equivalent for. The value is a free string instead of a validated set, the same way model is treated. The accepted levels differ per agent and per model: the Codex 0.173 bundled catalog lists low through xhigh for some models, through max for others, and also ultra for most, while Claude Code documents low, medium, high, xhigh and max. Neither CLI rejects an unknown level up front (Claude warns and falls back to its default, Codex loads the config and starts the turn), so a fixed list in the library would only reject valid levels as soon as either CLI adds one. The Codex value is written as a quoted TOML string with backslashes and quotes escaped, so it is never reparsed as another TOML type.
Codex 0.167 and newer only accept on-request and never for --ask-for-approval, so the account usage readers in Go, Rust (and the Node and Python bindings built on it) and .NET failed before the app server started. Against codex-cli 0.173.0 the call returned: initialize codex app-server: codex app-server closed stdout: error: invalid value 'untrusted' for '--ask-for-approval <APPROVAL_POLICY>' [possible values: on-request, never] Start it with -s read-only -a never instead. The reader only issues JSON-RPC reads and never runs a turn, so read-only plus never keeps the intent of a sandboxed, non-interactive process; on-request would let the server ask for approvals nobody answers. --stdio is still accepted on 0.173.
Codex runs pass the approval policy as -c approval_policy="<value>". Codex 0.167 and newer, including 0.173.0, refuse the untrusted value while loading the config and exit with code 1 before any event: Error: approval_policy = "untrusted" is no longer supported; remove this setting The CLI now only accepts on-request and never (-a/--ask-for-approval lists exactly those two). There is no equivalent to map untrusted to: on-request lets the model decide when to ask, which is a different policy, and rewriting it silently would change behavior. Removing the value would break builds and older Codex installs that still accept it. Mark it deprecated instead, in each language's idiom: a Deprecated: paragraph in Go, #[deprecated] in Rust (allowed where the crate and the Node and Python bindings still map it), [Obsolete] in .NET, and the type documentation in Node and Python. The value is still passed through unchanged, so older Codex releases keep working and newer ones keep reporting their own error in the exit error's stderr; Grok runs still map it to Grok's default permission mode. The example CLI help, the docs, and the resume tests now use on-request; new Go, Rust and .NET tests pin the pass-through (Node and Python reuse the Rust core).
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.
Summary
Codex CLI 0.167+ (verified on 0.173.0) only accepts
on-requestandneverfor approvals, which broke the Codex account-usage reader (-a untrusted) and makes runs with theuntrustedapproval policy exit before the first event. Claude Code also gained afablemodel alias and an--effortflag, and Codex exposes per-model reasoning levels throughmodel_reasoning_effort; the library had no first-class way to set either.Changes
fablenext to haiku/sonnet/opus (ClaudeModelFable,claude_model::FABLE,ClaudeModel.Fable,CLAUDE_MODEL_FABLE,ClaudeModels.Fable); docs and tests updated.Effort/effortrequest field. Codex:-c model_reasoning_effort="<level>"(new runs and resume, TOML-escaped). Claude:--effort <level>. Grok: rejected as invalid request, like other options Grok has no equivalent for. Free string, likeModel, because accepted levels vary per agent and per model (Codex 0.173 models acceptlow..xhigh,..max, or..ultra; Claude documentslow..max) and both CLIs check the value themselves.codex -s read-only -a never app-server --stdioinstead of-a untrusted, which 0.167+ rejects withinvalid value 'untrusted' for '--ask-for-approval'.Deprecated:, Rust#[deprecated], .NET[Obsolete], Node/Python type docs). Still passed through so older Codex releases keep working; Grok still maps it todefault. Docs and example CLI help updated.docs/examples/*.mdgain a "Reasoning effort" section and the deprecation note.Test plan
just cipasses locally — run recipe by recipe withoutjust: Go vet/golangci-lint/gosec/govulncheck/tidy/test -race/build, Rust fmt/clippy/test, Node build+test, Python build+pytest, .NET build/format/test, markdownlint, lychee, gitleaks all pass;rust-audit,dotnet-verify-pack, and the net8.0 test lane were not run locally.codex-cli 0.173.0without a login: account usage now gets past app-server startup to the auth step;exec --jsonevents (thread/turn started, error, error item, turn.failed) decode without errors.Related
-a/approval_policynowon-request|never).