Repository navigation
fix(orchestration): accept max and ultra effort for Codex models Orca does not list yet - #25375
Conversation
… does not list yet Codex models newer than Orca's built-in list (gpt-6.x) were capped at xhigh, so worker-start refused --effort max/ultra that the installed Codex supports. Unknown Codex models now accept the full known effort vocabulary; unknown effort names are still refused. Refs STA-9312
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Unlisted Codex models accept every effort level —
unknownModelOptionsmoves fromcodexEffort('xhigh')tocodexEffort('ultra')insrc/shared/agent-session-option-catalog-claude-codex.ts:205, so models outside the seed acceptminimal…ultrawhile unknown effort names liketurbostay rejected. - Tests updated for the permissive fallback —
worker-launch-preferences.test.tsrewrites the accepted/rejected tables for unlisted models and addsgpt-6.1-sol(rejected:turbo,future-effort).
I confirmed the fallback is read by both sides of the launch: resolveWorkerLaunchPreferences validation (worker-launch-preferences.ts:96-110) and resolveAgentSessionOptionLaunch (agent-session-option-launch.ts:38,62), so validation and launch args stay in lockstep. Known seed models keep their exact ceilings, the renderer already has max/ultra labels, and Codex readiness parsing keys off the header/composer rather than an effort-token list, so the widened range does not leave a parser gap. The focused suites (worker-launch-preferences, native-chat-locales) pass.
The one tradeoff is inherent and already called out in the PR description: an unlisted model that genuinely caps below ultra will start at Codex's default/clamped effort while the launch receipt records the requested effort. That matches the stated policy of preferring a permissive start over a refusal, so I don't consider it a defect.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe Codex option catalog now offers Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to No actionable issue remains in the reviewed changes; the expanded choices do not silently raise the effort used for unknown models. Security Architecture ReviewSecurity architecture risk: ⚪ Minimal · up to The change expands accepted effort settings without changing execution permissions or allowing arbitrary effort values. No material security risk was identified in the reviewed change. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
… does not list yet (#25375) Codex models newer than Orca's built-in list (gpt-6.x) were capped at xhigh, so worker-start refused --effort max/ultra that the installed Codex supports. Unknown Codex models now accept the full known effort vocabulary; unknown effort names are still refused. Refs STA-9312 (cherry picked from commit 3f6225d)

ELI5
Orca keeps a short built-in list of Codex models and the reasoning efforts each one supports. Any model not on that list (all of the gpt-6.x models today) was treated as if it topped out at "Extra high", so asking Orca to start a Codex worker with
--effort maxon, for example,gpt-6.1-solwas refused even though the user's Codex supports it. This lets Codex models Orca doesn't know yet use every effort level Codex has.What Changed
orca orchestration worker-start --agent codex --model gpt-6.1-sol --effort maxfailed withAgent codex model gpt-6.1-sol does not support effort max. Same forultra, and for every other model missing from Orca's list.max. A made-up effort name (for exampleturbo) is still refused. Models on Orca's list keep their exact effort lists.unknownModelOptions) now allows the full known effort list (minimal through ultra) instead of stopping at xhigh. Both worker-start validation and the launch-argument builder read this same fallback, so they move together. The desktop effort picker for an unrecognised Codex model also shows Max and Ultra now.Why
Current Codex models support
maxandultra, and Codex handles a level a model does not support without failing:ultrabecomes the model's highest level, and any other unsupported level falls back to the model's default effort. So for a model Orca has never heard of, being permissive costs at most "started at the default effort instead of the one asked for", while being strict blocks real, supported requests.Adding gpt-6.x to the hard-coded list would only move the problem to the next model release. The follow-up (same ticket) asks the installed Codex for its own model and effort list on the machine where the worker runs, and uses this permissive fallback only when that is unavailable.
Linked Issue
Linear STA-9312 (internal).
Visual Proof
N/A — command-line behaviour only; the live run is described under Testing.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Updated the worker-start effort table: unrecognised models (including
gpt-6.1-soland a made-up future model) now accept minimal…ultra and still refuse unknown effort names.Live on macOS with Codex CLI 0.160 in an isolated Orca (separate profile, home and Codex home):
worker-start --agent codex --model gpt-6.1-sol --effort maxstarted a worker whose Codex status line readGPT-6.1-Sol max, and it replied to the task.--effort turbowas refused withdoes not support effort turbo.pnpm tc,pnpm run check:code-quality:changed, and the shared / native-chat / orchestration test suites pass (one unrelated local failure in a fish-shell test caused by my own fish config).Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
No platform-, SSH- or remote-specific behaviour: the catalog is shared code and validation runs on the host where the worker starts. Older remote hosts keep their own (stricter) fallback until they update.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)