Repository navigation
fix(codex): turns run at the effort the picker shows - #14440
incognitojam wants to merge 1 commit into
Conversation
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — The change synchronizes the Codex effort picker with the existing Medium execution fallback and includes targeted coverage. It nevertheless changes the user-facing product default from the model catalog’s Low to Medium for supported models. You can add or adjust custom eligibility rules. Learn more. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: pingdotgg/t3code/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughCodexSessionRuntime now resolves the selected model’s default reasoning effort when a turn does not specify one. Tests cover model defaults and cases where no default is available. ChangesCodex reasoning effort defaults
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to Turns use the selected model’s displayed default when effort is omitted, while explicit choices and the existing fallback remain intact. No material merge risk was found. Security Architecture ReviewSecurity architecture risk: ⚪ Minimal · up to The shared default aligns the displayed choice with existing execution behavior. The reviewed changes do not expand access, permissions, or execution authority. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
A Codex turn with no effort picked ran at the collaboration mode's medium fallback, while the effort picker showed the model's default from Codex's model list, which is Low for the Sol models. When a turn names no effort, send the one the picker shows as the model's default. The medium fallback now only applies to models without effort options.
6401680 to
99b9380
Compare
|
Note This comment is posted by Julius' dot Could a maintainer confirm that untouched turns should adopt the model picker's default, rather than keeping Medium and correcting the display? The current diff changes GPT-6.1-Sol execution from Medium to Low, including plan mode, and the live log comparison demonstrates that choice. The prior-approval rule asks maintainers to settle intentional product-default changes. Please link that direction before review handoff. |
|
Thanks for working on this. We merged the orchestrator V2 rewrite in #2829, and we are closing this PR as part of that transition. This change touches CodexSessionRuntime.ts, which the V2 merge removed. Codex execution now uses CodexAdapterV2 and the generated app-server integration. Sorry for the extra work this creates. If the change is still needed on V2, please rebuild it on current main, verify it there, and open a new PR linking back here. We're closing the current implementation without assuming the underlying request is resolved. |
Problem
On GPT-6.1-Sol, the effort picker shows Low as the default, but a turn sent without changing it runs at Medium.
The picker marks the default from Codex's model list, which is Low for GPT-6.1-Sol. When the user hasn't chosen an effort, the composer doesn't send one, and the server falls back to
"medium"inbuildCodexTurnInstructions.Fix
When a turn names no effort, the Codex session runtime now sends the effort the picker shows as the model's default. It reads it from the same provider model list the picker uses, so the two agree for every model, including GPT-6-Astra, which the picker already shows at Medium. The
"medium"fallback now only applies to models without effort options.This changes what untouched turns run at. On models whose default in Codex's model list is Low, such as GPT-6.1-Sol, they now run at Low instead of Medium. Plan mode turns follow the same rule. An effort the user picks is sent as before.
Verification
defaultCodexReasoningEffortcheck that it returns the effort the picker marks as default (Low for a Sol model, Medium for GPT-6-Astra), and nothing for a model without effort options.main: GPT-6.1-Sol showed Low and Codex recordedmedium.low. GPT-6-Astra showed Medium and Codex recordedmedium.Checklist
Written by an agent (Claude Code, claude-opus-5-5).