You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add shared launch controls to Chat UI settings - #37607
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.
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: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
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 checks: 4 passed
Check name
Status
Explanation
Title check
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
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.
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.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)