Skip to content

fix(orchestration): accept max and ultra effort for Codex models Orca does not list yet - #25375

Merged
Jinwoo-H merged 1 commit into
mainfrom
sta-9312-codex-unknown-model-effort
Oct 5, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
sta-9312-codex-unknown-model-effort

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​13 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2

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 max on, for example, gpt-6.1-sol was 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

  • Before: orca orchestration worker-start --agent codex --model gpt-6.1-sol --effort max failed with Agent codex model gpt-6.1-sol does not support effort max. Same for ultra, and for every other model missing from Orca's list.
  • After: it starts the worker at max. A made-up effort name (for example turbo) is still refused. Models on Orca's list keep their exact effort lists.
  • Mechanism: the Codex catalog's fallback for unrecognised models (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 max and ultra, and Codex handles a level a model does not support without failing: ultra becomes 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-sol and 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 max started a worker whose Codex status line read GPT-6.1-Sol max, and it replied to the task. --effort turbo was refused with does 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

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and 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

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

… 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

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Unlisted Codex models accept every effort level — unknownModelOptions moves from codexEffort('xhigh') to codexEffort('ultra') in src/shared/agent-session-option-catalog-claude-codex.ts:205, so models outside the seed accept minimal…ultra while unknown effort names like turbo stay rejected.
  • Tests updated for the permissive fallback — worker-launch-preferences.test.ts rewrites the accepted/rejected tables for unlisted models and adds gpt-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.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

🧰 Additional context used
📚 Code guidelines (1)
AGENTS.md — auto-discovered

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 833ecb56-8951-4516-a09e-47e667271cbc
📥 Commits

Reviewing files that changed from the base of the PR and between d9846e6 and f019a0e.

📒 Files selected for processing (2)
  • src/main/runtime/rpc/methods/orchestration/worker/worker-launch-preferences.test.ts
  • src/shared/agent-session-option-catalog-claude-codex.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The Codex option catalog now offers ultra as an effort choice for unknown models. Tests now expect max and ultra to be accepted for several models and verify that gpt-6.1-sol rejects turbo and unknown effort values.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to f019a

No actionable issue remains in the reviewed changes; the expanded choices do not silently raise the effort used for unknown models.

Security Architecture Review

Security architecture risk: ⚪ Minimal · up to f019a

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
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The incremental exposure is two explicit effort settings within workers that could already be launched using an unknown model. The inspected path does not select a new executable or grant additional authority. Exact production tenant and environment exposure is not established by the supplied evidence.

Trust Boundaries and Controls

  • observed — Caller-supplied effort remains constrained to catalog choices before reaching command construction. Existing agent validation, catalog capability checks, resolved-value checks, argument quoting, and override-conflict checks remain in place; widening the list does not bypass these controls.

Resilience and Maintainability Implications

  • inferred — Validation and argument generation use the same unknown-model fallback, limiting control drift between accepted requests and emitted arguments. External handling of unsupported settings remains unverified, so the claimed downgrade-to-default behavior is not treated as an established guarantee.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: accepting max and ultra effort for Codex models that Orca does not list.
Description check ✅ Passed The description covers the required sections with a clear explanation of the change, its purpose, testing, visual-proof rationale, and compatibility considerations. It also links the internal issue an…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Jinwoo-H
Jinwoo-H merged commit 3f6225d into main Oct 5, 2026
33 checks passed
Jinwoo-H added a commit that referenced this pull request Oct 5, 2026
… 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant