Repository navigation
Preserve disabled reasoning in Codex sessions - #4972
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[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.
🚨 SLOP COP 🚨 ·
new-issue-autopilotHuman comments
What was wrong
The Codex provider excluded the existing disabled-reasoning level from its capability ladder and display descriptors. Its outgoing effort mapper also converted that level to null, so the real session configuration builder threw instead of forwarding it. Custom models inherit the provider ladder, making this both a selection and session-translation defect. Reproduction and root-cause report.
What changed
nonein the existing Codex ladder and descriptors, and pass it through the outgoing effort mapper.mediumdefault andultracoderejection.none(this fixed the Linux and Windowsserver-2CI failures onfe38a2b).git diff --numstat origin/main). No dependency, generated file, stored-data, protocol/schema, permission, packaging, or release changes. Existing UI, SDK, and CLI option surfaces consume the same provider registration; no new flags or settings.How you verified
be68bf357b3428161bd83f57dda427a9b58094ca, using a test-only patch. Session configuration throws fornone; custom-model efforts omit it.10d78d6be09d77ad9f8979468e9120b1c48edb5cand confirmed the session regression still fails before production edits.pnpm exec turbo run test --filter=bb-plugin-provider-codex: 348 tests passed, including the repaired session regression.pnpm exec turbo run test --filter=@bb/server -- test/system/execution-options.test.ts test/threads/thread-reasoning-policy.test.ts: 37 tests passed, including custom-model discovery.pnpm exec turbo run lint typecheck --filter=bb-plugin-provider-codex --filter=@bb/server: passed;git diff --check: passed; no binary changes.CODEX_HOME, custommodel_providerpointed at a local fake Responses endpoint, modelcustom-nonreasoning): bb'sbuildCodexConfigoutput went tocodex app-serverthread/start→turn/start.models.ts):buildCodexConfigthrowsCodex does not support the none reasoning level., and no request reaches the endpoint.thread/startreportsreasoningEffort: "none", the turn completes, and the capturedPOST /v1/responsesbody carriesreasoning: {"effort":"none","summary":"auto"}. Control run withmediumsends{"effort":"medium"}.534d8d0:pnpm exec turbo run test --filter=bb-plugin-provider-codex(32 files) and serverthread-runtime-config,execution-options,thread-reasoning-policypass.noneremains model-dependent. Catalog models still show only the efforts Codexmodel/listreports.Fixes #4958