Skip to content

feat(omp): launch OMP --effort as its --thinking level - #28438

Open
Jinwoo-H wants to merge 1 commit into
mainfrom
readiness/omp-effort-thinking
Open

Jinwoo-H wants to merge 1 commit into
mainfrom
readiness/omp-effort-thinking

Conversation

@Jinwoo-H

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

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​126 $\color{#cf222e}{\Huge{\mathbf{−}}}$​10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​116
Prod 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​51 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​47

ELI5

OMP (oh-my-pi) users can now ask Orca to start OMP thinking harder or lighter with --effort, the same flag that already works for Claude, Codex, Grok and others. Orca passes it to OMP as --thinking <level>.

What Changed

Before: orca agent launch --agent omp --model X --effort high (and orca worktree create --agent omp --effort, orca orchestration worker-start --agent omp --effort) failed with "does not support effort". Users worked around it by typing a raw orca terminal create --command "omp --thinking high".

After: those commands start OMP with --model X --thinking high. Accepted levels are OMP's own: minimal, low, medium, high, xhigh, max (off and auto are modes, not levels, and are refused). If the user's saved OMP arguments already contain --thinking, Orca removes that one so the flag is not passed twice. Automations' extra arguments for OMP now accept --thinking <level> as the effort, replacing a saved default the same way.

Mechanism: OMP's option catalog gains one effort option that launches as --thinking <level>. OMP models are discovered at runtime, so the option sits in the catalog's "any model" slot, which the launch and the --effort check already read. Desktop and phone pickers show nothing new: they only show options attached to listed models, and OMP's listed models carry none. There is no mid-session switch, because OMP has no slash command that sets a thinking level.

Older hosts: an older Orca host has no OMP effort option and would quietly drop the level. The host now advertises agent.launch.omp-effort.v1. The CLI refuses OMP --effort against a host without it ("Update Orca on the execution host, or omit --effort") instead of launching without it. worker-start was already safe because the host does the check, so an older host refuses. Automation extra arguments are also checked on the host, so an older host rejects --thinking.

Why

This reuses the path every other agent's effort already takes, so there is no OMP-specific launch code. Mapping to OMP's real --thinking flag (checked against omp --help and OMP 17.2.9 source) is better than asking users to put raw flags in a terminal command. OMP itself lowers a level a model doesn't support to the nearest one below it, so a per-model ceiling isn't needed for a safe launch. Adding the levels to the desktop picker was left out because it would be a UI change.

Linked Issue

STA-9412 (Linear). Partial fix: this gives OMP users a supported way to launch with a thinking level. It does not change the rest of that ticket.

Visual Proof

N/A. This changes CLI and launch behavior with no UI change. Desktop and phone pickers read the same catalog but show nothing new for OMP.

Testing

  • New tests fail on base and pass here (8 cases): catalog launch args (--model X --thinking high), accepted and refused levels, a saved --thinking=low default replaced by the requested level in the final command line, worker-start passing OMP effort through, automation extras merge and duplicate-effort refusal, and the CLI sending effort to agent.launch and refusing it on a host without the capability.

  • pnpm tc passes. pnpm run check:code-quality:changed passes with 0 new findings.

  • 3736 related tests pass (CLI, option catalogs, automations, orchestration, agent-launch). 33 src/cli/runtime/launch* and orchestration-structured-worker-session failures happen on origin/main too in this environment.

  • I manually tested these changes locally (not run in the real app; covered by command-builder and CLI tests)

  • Automated tests added/updated, or explained why not below

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

The CLI never builds a path, so Windows and Linux are unaffected. Over SSH, the host that builds the command uses the same catalog. Older and newer client/host versions are covered under "Older hosts" above. Mobile shows no new picker.

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)

OMP model launches accepted --model only, so orca agent launch, worktree create,
and orchestration worker-start refused --effort for OMP. Add an OMP effort option
that launches as --thinking <level> (minimal..max), strips a saved --thinking
default when set, and allow --thinking as the effort in automation extra args.
The CLI refuses OMP --effort against a host without agent.launch.omp-effort.v1,
which would otherwise drop the level silently.

Refs STA-9412
@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

📝 Walkthrough

OMP launches now accept supported effort values and pass the selected value as --thinking. Worker launch preferences retain and translate supported effort values. The CLI checks for the OMP effort runtime capability and returns incompatible_runtime if a host lacks it.

Priority: ⬇️ Low

Severity of issue fixed: Low

Merge Risk: 🔵 Low · up to 6e89d

The worker-start help may confuse users configuring OMP effort. Correct the model-support list; this does not otherwise block merging.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 9 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
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.
Description check Passed The description covers the required sections and clearly explains the user impact, implementation, rationale, testing, compatibility, and checklist status. The linked issue is identified as STA-9412, …
Title check Passed The title is concise, specific, and accurately summarizes the main change: mapping OMP --effort to its --thinking level during launch.
  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · 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.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d879d166-effc-418f-82d2-044163a9a049
📥 Commits

Reviewing files that changed from the base of the PR and between 26a265d and 6e89d56.

📒 Files selected for processing: 9
  • src/cli/agent-launch-request.ts
  • src/cli/index-agent-launch.test.ts
  • src/cli/specs/orchestration-worker-specs.ts
  • src/main/runtime/rpc/methods/orchestration/worker/worker-launch-preferences.test.ts
  • src/shared/agent-launch-runtime-capability.ts
  • src/shared/agent-session-option-catalog-omp.test.ts
  • src/shared/agent-session-option-catalog-omp.ts
  • src/shared/automation-extra-agent-args.test.ts
  • src/shared/automation-extra-agent-args.ts

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

'When reusing --terminal, pass --worktree for that terminal; current means the coordinator worktree.',
'--agent takes an Orca agent id enabled on the worker server, such as claude, codex, cursor, antigravity, muse, zcode, opencode, or opencode2.',
'--model supports Claude, Codex, Cursor, Antigravity, and Muse opaque provider model ids; --effort requires --model. OMP accepts --model only; --effort is unsupported. Neither can combine with --terminal. OpenCode model selection requires an existing worktree, a verified execution-host CLI, and an available model; effort is unsupported. Other agents, including zcode, launch with the model from their own config.',
'--model supports Claude, Codex, Cursor, Antigravity, and Muse opaque provider model ids; --effort requires --model. OMP --effort sets its --thinking level (minimal, low, medium, high, xhigh, max). Neither can combine with --terminal. OpenCode model selection requires an existing worktree, a verified execution-host CLI, and an available model; effort is unsupported. Other agents, including zcode, launch with the model from their own config.',

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Add OMP to the --model support list.

This note says OMP accepts --effort and that --effort requires --model. The preceding list omits OMP, so the note does not tell users that they can supply the required model. Add OMP to the list. (raw.githubusercontent.com)

This branch has not been deployed

No deployments
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