Skip to content

Add shared launch controls to Chat UI settings - #37607

Merged
brennanb2025 merged 7 commits into
mainfrom
brennanb2025/merrow-2
Nov 3, 2026
Merged

brennanb2025 merged 7 commits into
mainfrom
brennanb2025/merrow-2

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Chat UI settings currently start with appearance controls, so users have to visit Agents settings to choose Chat or CLI. This adds a large Chat UI status card with a Turn on/Turn off button at the top, followed by a Chat/CLI selector for each supported, enabled agent.

The new controls reuse the existing Agents components and save paths. Opening the page does not change any preference. Existing defaults, per-agent choices, missing-CLI restrictions and launch behavior stay the same, and Agents settings retain their controls. The top card presents the existing default choice; each agent’s own choice continues to take precedence.

Search and command-palette links can reach the new controls. These desktop launch preferences stay out of web-client settings, matching their existing availability. The per-agent Chat/CLI choice is an intended Orca-specific setting because both launch interfaces are supported and this layout was requested.

Validation: 65 focused tests passed, covering renderer behavior, shared save paths, and existing-user settings migration. Four renderer screenshots passed at desktop and narrow widths in light and dark themes. Independent correctness, architecture and final reference reviews passed with no findings. The final requested button, copy and spacing changes passed 19 focused renderer tests, including the exact kept-override toast and action. Real dev-app interaction verified both card states and the toast. All 41 local changed-code checks and CI passed on the final head, including typecheck, all 12 test shards and macOS/Windows packaging. Review takes the full path conservatively because this exposes existing saved settings from another entry point.

Plan: add a status-card presentation to the existing default component, reuse the existing per-agent Chat/CLI control and builder in Chat settings, and register search anchors. No new stored fields, migration, launch logic or changed defaults. No unresolved product or compatibility decisions.

(screenshot removed: contained real product data)

(screenshot removed: contained real product data)

@brennanb2025
brennanb2025 marked this pull request as ready for review November 3, 2026 01:25
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

Chat settings now include a default Chat UI switch and per-agent launch controls. The per-agent controls use native-agent detection and local chat-program availability. Desktop settings expose searchable launch entries and navigation. The changes also add English and Japanese labels, a preview fixture, and tests for settings updates, search, and navigation.

Merge Risk: Minimal · up to 99193

The new launch controls have no established merge-blocking issue.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… 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 "Add shared launch controls to Chat UI settings" matches the main change. The PR adds a Chat UI status card with a Turn on/Turn off button and a per-agent Chat/CLI selector to the Chat setti…
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 core change: a Chat UI status card with a Turn on/Turn off button, a per-agent Chat/CLI selector, reuse of existing save paths, search and command-palette reachability, and …
Full details: Title check

Explanation

The title "Add shared launch controls to Chat UI settings" matches the main change. The PR adds a Chat UI status card with a Turn on/Turn off button and a per-agent Chat/CLI selector to the Chat settings. The title is short, specific, and in the imperative mood. It does not cover search or web-client gating, but that is expected.

Full details: Description check

Explanation

The description covers the core change: a Chat UI status card with a Turn on/Turn off button, a per-agent Chat/CLI selector, reuse of existing save paths, search and command-palette reachability, and web-client exclusion. It also gives test and validation results and includes before/after-style screenshots for both light and dark themes. The template sections ELI5, Linked Issue, Risk level, AI Disclosure, Review, Agent skill upstream boundary, and Checklist are absent, and the Testing section has no manual-test checkbox or platform list. The Why section is only partly addressed, since no alternatives considered are described. Most required content is present, so the description is mostly complete.

Full details: Docstring Coverage

Explanation

Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 6 functions across 10 files. (2 skipped: 2 unsupported.)

Resolution

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

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

ast-grep (0.51.1)

ast-grep could not parse rule config: /ast-grep-rules/ast-grep-essentials/rules/bash/security/set-plus-e-error-masking-bash.yml

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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@brennanb2025

brennanb2025 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor Author

Chat UI settings previously started with appearance controls, leaving launch preferences in Agents settings. The page now starts with a Chat UI on/off card and Turn on/Turn off button, followed by compact per-agent Chat/CLI selectors. These reuse the existing controls and save path. Opening the page writes no preferences; existing defaults and per-agent choices are preserved.

The requested title, descriptions, button and tighter list spacing are approved by Brennan. The button shows the same kept-override toast and Set all action as Agents settings when an agent is explicitly set to the opposite mode. Both states and that toast were exercised in the real dev app. The app remains open at Brennan’s request.

Independent correctness, architecture and final reference reviews passed; the locale and primitive-sizing corrections were independently checked. No open or deferred PR findings. Renderer tests cover preference writes, existing-user migration, desktop/web visibility, search/navigation and the exact override toast/action. All 41 local changed-code checks and CI passed on 991938b, including typecheck, all 12 test shards and macOS/Windows packaging. No unresolved threads or conflicts.

The per-agent choice is an intended Orca-specific control because the app supports both launch interfaces and this layout was requested. No temporary differences.

For Brennan’s review:

(screenshot removed: contained real product data)

(screenshot removed: contained real product data)

The final screenshots were captured on e12bbee. The later commit 991938b removes only an unreferenced English catalog entry; it changes no rendered output, settings flow or screenshot layout. That correction was independently reviewed and passed the catalog/extraction checks plus the final full gate and CI. Retained renderer and real-app evidence covers the unchanged controls and override toast.

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

Additional comments: 1
src/renderer/src/components/settings/AgentDefaultSurfaceSection.tsx: 1

231-231: Trivial · Functional Correctness · Quick win

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Set the button type explicitly.

If a form contains this section, clicking the launch button also submits the form. The shared Button does not set a default type. Add type="button" to this control. (raw.githubusercontent.com)

Based on learnings, buttons that do not submit a form should specify type="button", even when they currently appear outside a form.

Proposed change
 <Button
+  type="button"
   variant={surface === 'chat' ? 'outline' : 'default'}

Source: Learnings

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 90e4deba-6f98-461c-bc39-b6746ffe88e2
Commits

Reviewing files that changed from the base of the PR and between 21a5ad8 and 991938b.

Files selected for processing: 7
  • src/renderer/src/components/settings/AgentDefaultSurfaceSection.test.tsx
  • src/renderer/src/components/settings/AgentDefaultSurfaceSection.tsx
  • src/renderer/src/components/settings/ChatAgentLaunchSettings.tsx
  • src/renderer/src/components/settings/ChatSettingsSection.test.tsx
  • src/renderer/src/components/ui/card.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/ja.json
Files skipped from review as they are similar to previous changes: 3
  • src/renderer/src/components/settings/ChatAgentLaunchSettings.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/ja.json

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

@brennanb2025
brennanb2025 merged commit ca865dd into main Nov 3, 2026
42 checks passed
audichuang pushed a commit to audichuang/orca that referenced this pull request Nov 3, 2026
Cherry-picked feature diff from PR stablyai#37607 at 991938b against its main base 7a03807, including all final UI updates and excluding unrelated main history.
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