Skip to content

fix(omp): honor thinking settings when launching workers - #30689

Open
NarryG wants to merge 9 commits into
stablyai:mainfrom
NarryG:feat/omp-thinking-controls
Open

NarryG wants to merge 9 commits into
stablyai:mainfrom
NarryG:feat/omp-thinking-controls

Conversation

@NarryG

@NarryG NarryG commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

OMP workers could accept a thinking preference but leave it out of the actual launch. Orca now passes the requested setting to OMP, including Off and Auto; leaving it unset still uses your OMP configuration.

What Changed

  • Map worker --effort to native --thinking, preserving Off, literal Auto and opaque model selectors.
  • Use native model metadata without guessing the user's configured thinking default. Existing explicit CLI arguments take precedence without duplicate flags.
  • Refuse an explicit thinking preference when an older execution host cannot honor it; model-only launches remain compatible.
  • Cover launch, saved-preference reset, generation precedence, malformed metadata and selected-executable recovery commands. No new picker, Plan or speed row.

Why

A native thinking policy is not always an effort tier. Keeping omission, Off and Auto distinct avoids silently changing the user's configuration or acknowledging a preference the host drops. This reuses the existing option and launch paths rather than adding another setting store.

Linked Issue

Fixes #23388

Overlap: PR28438 handles ordinary effort mapping; PR29798 adds native discovery. Both remain open. This candidate retains the gap around configured-default omission and explicit Off/Auto; it does not copy either PR or add another discovery path.

Visual Proof

Both launches requested Off, with OMP's configured default set to Low. Windows before: 51530bb; after: 652a8a4.

Before — request ignored

Before: native OMP remains on low despite requesting Off

After — request honored

After: native OMP runs with thinking off

Actual native policy rows captured with OMP still running, not after returning to the shell. No completed model turn or per-turn Auto classification is claimed.

Testing

  • At 652a8a4, the rebuilt Windows app and worker CLI checked unset, Off, Auto and explicit argument precedence; the native-alive Low/Off images above retain that exact revision.
  • Final cb490bd: Linux full lint, typecheck, changed-code quality and all four canonical pnpm test shards passed: run.
  • Final cb490bd on Windows: 113 focused tests, full build/typecheck and changed-code quality passed. Production-planner smoke preserved unset, Off, Auto and explicit argument precedence. Earlier d4379a8 production-graph smokes covered host refusal/replay/preflight and prepared command/environment/resume/native delivery with controlled RPC; no live SSH or inference claim.
  • Earlier 652a8a4 checks passed 188 focused root tests and 8 focused mobile tests. Intermediate 037994d Linux failed one obsolete exact-object mock assertion; that assertion and duplicate forwarding-only test were deleted, not repinned or hidden by changing runtime behavior.
  • The full Windows mobile run was not green: 93 recording/file-URL/timeout failures. No defaults, timeouts or skips were changed to hide them. macOS runtime, real SSH/WSL and mobile-device behavior remain untested.
  • Upstream workflow approval remains maintainer-owned; the successful fork run is exact-source contribution evidence, not upstream CI approval.

AI Disclosure

Implementation, integration and final review: OpenAI Codex GPT-6.1 Sol. Earlier independent review also used Claude Fable 5.1. Checks were agent-run, not human testing.

Review

  • Cross-platform: existing argument/path handling; no new OS branches. Windows native launches and Linux checks passed; macOS runtime untested.
  • SSH/local/remote: discovery and launch stay execution-host-owned; real SSH/WSL not exercised. Explicit unsupported old-host writes refuse instead of silently downgrading.
  • Agents/integrations/mobile: OMP-only policy; other agents retain their defaults. Shared mobile option boundaries covered by source tests, not a device run. No Git-provider changes.
  • Performance/security: reuse existing discovery and launch planning; no new polling, credential handling or shell interpolation. Native thinking values validated.
  • UI: existing controls only; live reported metadata remains authoritative. No styling changes.

Agent skill upstream boundary

  • Not applicable: no upstream skill-installer material copied or mechanically translated.

Notes

No dependency or release-version changes.

Author

GitHub: @NarryG. X: @NarryOnTheNet.

Checklist

  • Small, focused change with before/after, mechanism and alternatives explained.
  • Real issue and overlapping work disclosed; genuine before/after attached with source revisions.
  • Source reviewed for correctness, security, performance and compatibility.
  • Cross-platform, SSH/remote and supported-agent impact considered.
  • Required contribution checks completed; Windows mobile failures disclosed above.

@NarryG

NarryG commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

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: 44bbfc35-62ed-4fde-862b-aed9dabe70fd
📥 Commits

Reviewing files that changed from the base of the PR and between 59a9da2 and cb490bd.

📒 Files selected for processing: 32
  • docs/site/content/docs/agents/native-chat.mdx
  • mobile/src/session/use-mobile-omp-model-discovery.test.ts
  • src/cli/agent-launch-request.ts
  • src/cli/handlers/orchestration-worker-cli.test.ts
  • src/cli/handlers/orchestration-worker-recovery-output.test.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/renderer/src/components/native-chat/native-chat-session-option-enrichment.test.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-create-outcome-recovery.test.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.ts
  • src/renderer/src/lib/launch-agent-in-new-tab-web-runtime.test.ts
  • src/renderer/src/lib/launch-agent-web-host-tab.ts
  • src/renderer/src/lib/runtime-agent-background-create.ts
  • src/renderer/src/lib/structured-agent-session-launch-persistence.test.ts
  • src/renderer/src/runtime/remote-agent-session-launch.test.ts
  • src/renderer/src/runtime/remote-agent-session-launch.ts
  • src/renderer/src/runtime/web-runtime-session-terminal-host-authority.test.ts
  • src/renderer/src/runtime/web-runtime-terminal-create-operation.ts
  • src/shared/agent-launch-model-preferences.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/agent-session-option-catalog-types.ts
  • src/shared/agent-session-option-launch.ts
  • src/shared/commit-message-agent-spec.ts
  • src/shared/commit-message-plan.ts
  • src/shared/native-chat-session-option-defaults.test.ts
  • src/shared/native-chat-session-option-defaults.ts
  • src/shared/omp-model-list-probe.ts
  • src/shared/omp-thinking-generation.test.ts
  • src/shared/structured-agent-session-options.ts

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

📝 Walkthrough

OMP model discovery and session options now support advertised thinking levels, including native --thinking values and a config-default selection. CLI and remote launch paths validate explicit OMP thinking preferences against host runtime capabilities. Remote terminal recovery tracks whether creation started, and promptless web launches retain prepared launch arguments and environment settings. Tests cover option handling, capability checks, launch routing, and recovery.

Priority: ➖ Normal

Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to cb490

This change maps OMP worker thinking preferences to the native thinking option and refuses explicit preferences on older hosts. No actionable merge-blocking risk remains in the supplied review evidence.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 22.73% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 22 functions across 39 files. (1 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main change: preserving OMP thinking settings when launching workers. It is concise and specific.
Linked Issues check Passed Issue #23388 requires OMP launch-time model selection and effort mapping to native --thinking. OMP_SESSION_OPTION_CATALOG enables worker launch preferences and emits --model; its OMP option emit…
Out of Scope Changes check Passed The changed files support issue #23388. Catalog and discovery changes implement OMP model and thinking launch behavior. Persistence, generation, and precedence changes preserve unset, explicit, and us…
Description check Passed The pull request description follows the required template and provides a clear ELI5 summary, scope, rationale, linked issue, visual proof, testing results, AI disclosure, compatibility notes, known t…
Full details: Linked Issues check

Explanation

Issue #23388 requires OMP launch-time model selection and effort mapping to native --thinking. OMP_SESSION_OPTION_CATALOG enables worker launch preferences and emits --model; its OMP option emits --thinking. The reviewed source preserves native values including off and auto, omits the config-default sentinel, and removes conflicting agent arguments without duplicating explicit arguments. Discovery parses model-specific thinking levels and does not infer a default. The supplied test summary covers validation, precedence, persistence reset, capability refusal, replay, and launch paths.

Full details: Out of Scope Changes check

Explanation

The changed files support issue #23388. Catalog and discovery changes implement OMP model and thinking launch behavior. Persistence, generation, and precedence changes preserve unset, explicit, and user-authored values. Capability, host-authority, legacy, and recovery changes prevent unsupported hosts from silently dropping explicit thinking. Documentation and tests cover these behaviors, including promptless launches and selected recovery commands. No unrelated production feature or formatting-only change is established in the reviewed-head evidence.

Full details: Description check

Explanation

The pull request description follows the required template and provides a clear ELI5 summary, scope, rationale, linked issue, visual proof, testing results, AI disclosure, compatibility notes, known test limitations, and checklist status.

Full details: Docstring Coverage

Explanation

Docstring coverage is 22.73% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 22 functions across 39 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Fix all pre-merge checks with AI
  • 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: d0d1b0ab-467e-46e7-9c84-341a2051c0d3
📥 Commits

Reviewing files that changed from the base of the PR and between 0e1d0ad and 652a8a4.

📒 Files selected for processing: 23
  • docs/site/content/docs/agents/native-chat.mdx
  • mobile/src/session/use-mobile-omp-model-discovery.test.ts
  • src/cli/agent-launch-request.ts
  • src/cli/handlers/orchestration-worker-cli.test.ts
  • src/cli/handlers/orchestration-worker-recovery-output.test.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/renderer/src/components/native-chat/native-chat-session-option-enrichment.test.ts
  • src/renderer/src/lib/structured-agent-session-launch-persistence.test.ts
  • src/shared/agent-launch-model-preferences.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/agent-session-option-catalog-types.ts
  • src/shared/agent-session-option-launch.ts
  • src/shared/commit-message-agent-spec.ts
  • src/shared/commit-message-plan.ts
  • src/shared/native-chat-session-option-defaults.test.ts
  • src/shared/native-chat-session-option-defaults.ts
  • src/shared/omp-model-list-probe.ts
  • src/shared/omp-thinking-generation.test.ts
  • src/shared/structured-agent-session-options.ts

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

Comment thread src/cli/agent-launch-request.ts Resolved
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@NarryG

NarryG commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Please review current head 73553b1, including the correction for discussion_r4312655317 and direct mounted replay. Verification: 45 focused tests, full Windows typecheck/build, changed-code quality, and a production-module old/new-host capability smoke passed. Existing exact652 native Low/Off visual evidence is retained honestly; the followup only closes paired-host capability refusal.

The generic docstring-percentage warning conflicts with this repository rule: concise non-obvious comments only. The existing docs now describe paired/replay refusal and model-only compatibility; adding boilerplate docstrings solely to raise a percentage would violate that standard and does not correct a consumer defect. Please treat that warning according to repository policy rather than requesting bulk comments.

@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: d3506624-1ee7-4139-ad36-3e87658b5149
📥 Commits

Reviewing files that changed from the base of the PR and between 652a8a4 and 73553b1.

📒 Files selected for processing: 7
  • docs/site/content/docs/agents/native-chat.mdx
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-create-outcome-recovery.test.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.ts
  • src/renderer/src/lib/runtime-agent-background-create.ts
  • src/renderer/src/runtime/remote-agent-session-launch.test.ts
  • src/renderer/src/runtime/remote-agent-session-launch.ts
  • src/renderer/src/runtime/web-runtime-terminal-create-operation.ts
🚧 Files skipped from review as they are similar to previous changes: 1
  • docs/site/content/docs/agents/native-chat.mdx

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

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@NarryG

NarryG commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Please review actual current head dff2ad9, including discussion_r4312881225 and the same existing background/web-host operation retry boundaries. Explicit OMP thinking is checked immediately before every existing create attempt; other agents, model-only behavior and retry/deadline/fallback policy are unchanged. Verification:65 focused tests, full Windows build/typecheck,29-file changed-quality gate and standalone real production-transport/background replay smoke passed. The earlier numeric docstring warning remains non-actionable under repository concise non-obvious comments-only policy; no boilerplate source changes were made to raise a percentage.

@NarryG

NarryG commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Please review actual current head8f04f20db685f419a1c937bfcb3b3f8f62253f51, completing discussion_r4312881225 across every actual retrying callback including legacy. First-attempt uncertainty remains replayable under the original operation/mutation ID; a later unsupported host is not evidence the first execution never happened. Verification:66 focused tests, full Windows build/typecheck,29-file quality gate, and standalone actual production host-authority/legacy transport smoke with real timers passed. Existing model-only/non-OMP behavior and retry/deadline/fallback policy are unchanged.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@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: 9a09183e-63c9-4b84-a433-b154b2aeb04e
📥 Commits

Reviewing files that changed from the base of the PR and between 73553b1 and 8f04f20.

📒 Files selected for processing: 6
  • docs/site/content/docs/agents/native-chat.mdx
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-create-outcome-recovery.test.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.ts
  • src/renderer/src/lib/runtime-agent-background-create.ts
  • src/renderer/src/runtime/web-runtime-session-terminal-host-authority.test.ts
  • src/renderer/src/runtime/web-runtime-terminal-create-operation.ts

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

@NarryG

NarryG commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Please review actual current head659942877e7d18eb50bec95eee7039276f7b7c72 for discussion_r4313153486. Per-attempt capability probes remain before every existing create callback, but uncertain-create bookkeeping starts only immediately before actual lower create/ensure dispatch. Zero-dispatch preflight failures do not invent uncertain creation; genuinely dispatched original operations remain replayable under the same identity.68 focused tests, full Windows build/typecheck,29-file quality and standalone actual production transport real-timer preflight smoke passed. No new retry/fallback/deadline/default or wire change.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@NarryG

NarryG commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

Current head659942877e7d18eb50bec95eee7039276f7b7c72 has a clean incremental verdict, but the recent review lists remote-runtime-pty-transport.ts as skipped because it is similar to previous changes. Please fully inspect that actual production file at the current head, including per-attempt thinking guards, create-start marker placement after preflight, zero-create failures, and preservation of genuine earlier-unknown replay identity, and confirm any remaining actionable findings. No additional source change is proposed;68 focused tests, actual production real-timer smoke and full Windows build/typecheck passed.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@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: 682fbf23-6a45-4852-aee3-a6e6eb059d98
📥 Commits

Reviewing files that changed from the base of the PR and between 0e1d0ad and 6599428.

📒 Files selected for processing: 30
  • docs/site/content/docs/agents/native-chat.mdx
  • mobile/src/session/use-mobile-omp-model-discovery.test.ts
  • src/cli/agent-launch-request.ts
  • src/cli/handlers/orchestration-worker-cli.test.ts
  • src/cli/handlers/orchestration-worker-recovery-output.test.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/renderer/src/components/native-chat/native-chat-session-option-enrichment.test.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-create-outcome-recovery.test.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.ts
  • src/renderer/src/lib/runtime-agent-background-create.ts
  • src/renderer/src/lib/structured-agent-session-launch-persistence.test.ts
  • src/renderer/src/runtime/remote-agent-session-launch.test.ts
  • src/renderer/src/runtime/remote-agent-session-launch.ts
  • src/renderer/src/runtime/web-runtime-session-terminal-host-authority.test.ts
  • src/renderer/src/runtime/web-runtime-terminal-create-operation.ts
  • src/shared/agent-launch-model-preferences.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/agent-session-option-catalog-types.ts
  • src/shared/agent-session-option-launch.ts
  • src/shared/commit-message-agent-spec.ts
  • src/shared/commit-message-plan.ts
  • src/shared/native-chat-session-option-defaults.test.ts
  • src/shared/native-chat-session-option-defaults.ts
  • src/shared/omp-model-list-probe.ts
  • src/shared/omp-thinking-generation.test.ts
  • src/shared/structured-agent-session-options.ts

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

@NarryG

NarryG commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

Please perform the unskipped full review at latest head037994d97a, including actual promptless prepared-command preservation and existing guarded create/replay invariants. The full659 review finding4313471753 is fixed minimally; no other source or default/retry policy changes.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@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: 838f8d79-105b-4c5c-b801-36c8936175e6
📥 Commits

Reviewing files that changed from the base of the PR and between 0e1d0ad and 037994d.

📒 Files selected for processing: 31
  • docs/site/content/docs/agents/native-chat.mdx
  • mobile/src/session/use-mobile-omp-model-discovery.test.ts
  • src/cli/agent-launch-request.ts
  • src/cli/handlers/orchestration-worker-cli.test.ts
  • src/cli/handlers/orchestration-worker-recovery-output.test.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/renderer/src/components/native-chat/native-chat-session-option-enrichment.test.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-create-outcome-recovery.test.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.ts
  • src/renderer/src/lib/launch-agent-web-host-tab.ts
  • src/renderer/src/lib/runtime-agent-background-create.ts
  • src/renderer/src/lib/structured-agent-session-launch-persistence.test.ts
  • src/renderer/src/runtime/remote-agent-session-launch.test.ts
  • src/renderer/src/runtime/remote-agent-session-launch.ts
  • src/renderer/src/runtime/web-runtime-session-terminal-host-authority.test.ts
  • src/renderer/src/runtime/web-runtime-terminal-create-operation.ts
  • src/shared/agent-launch-model-preferences.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/agent-session-option-catalog-types.ts
  • src/shared/agent-session-option-launch.ts
  • src/shared/commit-message-agent-spec.ts
  • src/shared/commit-message-plan.ts
  • src/shared/native-chat-session-option-defaults.test.ts
  • src/shared/native-chat-session-option-defaults.ts
  • src/shared/omp-model-list-probe.ts
  • src/shared/omp-thinking-generation.test.ts
  • src/shared/structured-agent-session-options.ts

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

@NarryG

NarryG commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

Please fully review latest d4379a8, including complete existing prepared-plan metadata and unchanged authority selection, plus the guarded uncertain-create/replay invariants. Actual full037 finding4313750637 corrected; no new planner, fallback/default/retry policy or scope added.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@NarryG

NarryG commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Updated to current main (59a9da2) in merge commit 084226c. The only conflict was the incidental mock-call assertions already removed in this PR; retained that removal and all behavior assertions. Upstream failure-notification handling is preserved. No new feature behavior or history rewrite.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

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

🧹 Nitpick comments: 1
src/renderer/src/lib/launch-agent-in-new-tab-web-runtime.test.ts: 1

101-108: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Restore caller-level coverage for prepared host-launch arguments.

launchAgentInNewTab prepares the command, environment, launch configuration, and prompt-delivery fields before calling launchAgentInWebHostTab. The remaining caller tests check only the result and a few routing fields. The runtime tests call createWebRuntimeSessionTerminal directly. A caller regression that drops the prepared fields can therefore pass.

Suggested fix
+  it('forwards prepared prompt launch data to the host runtime', async () => {
+    store.settings.agentDefaultArgs = { codex: '--model gpt-5 --reasoning-effort high' }
+    store.settings.agentDefaultEnv = { codex: { CODEX_PROFILE: 'captured' } }
+    const { launchAgentInNewTab } = await import('./launch-agent-in-new-tab')
+
+    launchAgentInNewTab({
+      requestId: 'request-2',
+      agent: 'codex',
+      worktreeId: 'wt-1',
+      prompt: 'fix the spinner',
+      groupId: 'group-1'
+    })
+
+    expect(mocks.createWebRuntimeSessionTerminal).toHaveBeenCalledWith(
+      {
+        worktreeId: 'wt-1',
+        environmentId: 'web-runtime',
+        targetGroupId: 'group-1',
+        activate: true,
+        agentSessionKind: 'fresh',
+        launchAgent: 'codex',
+        command: "codex '--model' 'gpt-5' '--reasoning-effort' 'high' 'fix the spinner'",
+        env: { CODEX_PROFILE: 'captured' },
+        launchConfig: {
+          agentCommand: "codex '--model' 'gpt-5' '--reasoning-effort' 'high'",
+          agentArgs: '--model gpt-5 --reasoning-effort high',
+          agentEnv: { CODEX_PROFILE: 'captured' }
+        },
+        startupCommandDelivery: 'shell-ready',
+        prompt: 'fix the spinner',
+        promptDelivery: 'auto-submit',
+        viewMode: 'terminal'
+      },
+      { notifyFailure: false }
+    )
+  })

ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a8561729-f026-41c9-bcab-237fcf528838
📥 Commits

Reviewing files that changed from the base of the PR and between d4379a8 and 084226c.

📒 Files selected for processing: 9
  • src/main/agent-hooks/server/server-status-application.ts
  • src/main/agent-hooks/server/server-status-update.ts
  • src/main/daemon/pty-subprocess-spawn-file-foreground.test.ts
  • src/main/daemon/terminal-host-process-inspection.test.ts
  • src/main/github/github-remote-identity-parsing.test.ts
  • src/main/providers/local-pty-child-process-verdict.test.ts
  • src/main/providers/local-pty-provider-foreground-process.test.ts
  • src/renderer/src/components/terminal-pane/remote-pane-layout-push.ts
  • src/renderer/src/lib/launch-agent-in-new-tab-web-runtime.test.ts

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

@NarryG

NarryG commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Removed the eight unrelated formatting edits in cb490bd044; the merge pre-commit formatter had introduced them. They now match current main exactly. No runtime changes.

Caller coverage already exists in web-runtime-session-terminal-host-authority.test.ts: preserves prepared OMP thinking argv for a promptless web legacy launch invokes the real launchAgentInWebHostTab and real planner/creation path, with only the lower RPC bridge controlled. It checks native Off/model argv, custom config environment and resume environment. The removed tests copied immediate mock-call objects/quoting; restoring those would duplicate incidental wiring rather than cover consumer behavior. The 113 affected tests and full Windows build/typecheck passed on the merged source. Please reassess the caller-coverage warning against that existing regression and the repository requirement to avoid boilerplate docstrings.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@NarryG

NarryG commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

Please review final cb490bd044e53139e062cbac31868c5ff5059b31 against current main. The incremental command finished but the assessment still covers 084226c; the eight unrelated formatting diffs are now removed.

Please also reassess the remaining caller-coverage nit: the cited real regression invokes launchAgentInWebHostTab (not createWebRuntimeSessionTerminal directly), with the real startup planner and real terminal-create implementation through the final RPC boundary. The upstream launchAgentInNewTab preparation callsite was not behaviorally changed by this PR. Reintroducing the suggested exact mocked-object test would violate the project requirement against forwarding/quoting-copy tests; native Off/custom-config loss already has a consumer-boundary regression.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

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.

orchestration worker-start: accept --model (and --effort as --thinking) for the omp agent

1 participant