Repository navigation
fix: pass reasoning effort through to Codex - #1237
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
alandelong-oai
approved these changes
Oct 5, 2026
alandelong-oai
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed the full contribution at efa1bd50a7cd43ff6fdb528a774738f65e81e625 with selected base 398c4ce0edc05763b546a6823a1da86912b1f338, including changed tests and touched context, using three independent reviews followed by root synthesis.
No supported introduced finding.
Static source review; tests were inspected but not executed. CI, mergeability and integration are separate.
3 tasks done
Merged
3 tasks done
3 tasks done
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
The CLI and SDK helpers maintain reasoning-effort lists that can lag behind Codex and reject values supported by a selected model or provider. Accept effort strings and forward them to Codex while retaining existing defaults and precedence.
Changes
--effort EFFORTand accept any nonempty string. Generated CLI schemas and help describe pass-through behavior instead of a fixed enum.reasoningEffortinputs tostring, retaining the compatibility cast required by the pinned SDK type.Testing
Current merge validation:
Six affected SDK files, Bun seed
12345: 295 passed, 3 Windows-only skips, 0 failed. This includes CLI schemas/help, future effort values, explicit/default/profile precedence, unchanged provider errors, and the real SDK subprocess-forwarding matrix.The full typed Deep Scan executor test passed under Node 22.13.0, including concurrent discovery/reducer workers with fresh/resumed threads, explicit/future/inherited settings, and preserved authentication, Python, Git, permission and environment forwarding.
SDK
build:ciand SDK/MCP types, SDK format, focused executor Prettier, bundled plugin build, andgit diff --check: passed.Plugin Ruff check and format, the tracked
.mtsportable compatibility checker, and all 9 compatibility tests: passed. The Node 22.13 invocations use the required strip-types flag.The original SDK source, documentation and tests remain unchanged by the conflict resolution. No new full SDK or full MCP suite was run; the authored integration is confined to the typed executor test. No live model calls were made.
Final merge review: three independent native passes and a fresh verifier found no new integration issues at
fe940f69.Historical validation of cleanup commit
efa1bd50:build:ciandtypes, focused Prettier check, andgit diff --check: passed.ENOSPCwhile creating a binary fixture. Full package tests and a fresh native review gate were not completed for this cleanup commit.The preceding head
5939759passed node-ci. Those results do not validate the cleanup commit.Risk and rollout
This broadens existing CLI and SDK inputs; no flags, environment variables, or defaults are added or changed. Existing effort values, including
minimal, remain accepted. Support depends on the installed Codex runtime and selected model/provider.The generated CLI schema uses a nonempty string instead of an enum. Consumers that treat the previous SDK type as a closed enumeration may need to update those assumptions. Tests use synthetic values and local subprocesses; no live model calls were made. The cleanup changed tests only. The merge resolution preserves both parents in the typed worker regression test.
Public disclosure review