Repository navigation
fix(provider): catalog none without --reasoning; -c after exec - #84
Merged
Merged
Conversation
Catalog entries with no saved effort list only none and set supports_reasoning_summaries false so Codex does not send reasoning.effort. That 404s gateways such as Cursor composer-2.5. Co-authored-by: lolitaupdate <[email protected]>
xjoker
marked this pull request as ready for review
August 27, 2026 08:12
Codex 0.149 ignores `codex -c … exec` and falls back to api.openai.com. Provider launch now emits `codex exec -c …`; interactive launch keeps overrides in front. `--json launch` closes inherited stdin so exec does not wait on a pipe. Co-authored-by: lolitaupdate <[email protected]>
Codex 0.149 ignores options in front of exec, including user flags such as -m. Splice now finds the subcommand even when it is not the first token, puts -c after it, and moves those preceding flags with it. Tests expect that after-exec order. Co-authored-by: lolitaupdate <[email protected]>
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
Two custom-provider launch bugs that showed up against real gateways:
Catalog advertised thinking levels for every slug. Cursor-style
composer-2.5/modelsrows expose afastparameter, not reasoning effort. The generated Codex catalog still listedlow…max. Codex then snaps an unset effort tolowand sendsreasoning.effort, which some gateways return as404 not_foundonPOST /responses. Models without saved--reasoningnow catalog aseffort: noneandsupports_reasoning_summaries: false. Thinking models still advertise low…max when an effort is saved.-c model_reasoning_effort=noneis not sent.Codex 0.149 ignores
-cin front ofexec.codex -c model_provider=… exectalks toapi.openai.com(401 Missing bearer).codex exec -c …applies the provider.launchnow puts provider overrides afterexec/resume/ …, and moves user flags that preceded the subcommand with them (launch or -- -m one-shot exec hibecomescodex exec -c … -m one-shot hi). Interactive launch (no subcommand) still has them in front.--json launchcloses inherited stdin soexecdoes not wait on a pipe.Test plan
cargo clippy --all-targets -- -D warningscargo test --lib chatgpt_argv_/provider_argv_cargo test --test test_launch_passthroughCLI (isolated homes, real OpenRouter key + local mock
/models):--fetch-modelskeepslocal/chat-small+local/chat-plus, drops embedding/rerank--fetch-modelsrejected (gateway listed 417 models; pass --model)launch or exec: nanoreasoning effort: none→ping; r1high→pingTUI (
codex-switch tui, same binary):mockgw,ffetch: only the two chat slugs;←/→setslocal/chat-plusto high; saveor,f: redgateway listed 417 models; pass --model to pick slugs; list stays 2 slugs(skip), r1high; extraexec … pingstarts Codex withprovider: or,reasoning effort: none, isolatedCODEX_HOMEunder$CODEX_SWITCH_HOME/providers/or/codex-home