Skip to content

Settings: choose Chat or CLI in each agent's row; remove Chat → Providers - #36185

Merged
brennanb2025 merged 4 commits into
mainfrom
brennanb2025/chat-agent-choice-unify
Oct 30, 2026
Merged

brennanb2025 merged 4 commits into
mainfrom
brennanb2025/chat-agent-choice-unify

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​640 $\color{#cf222e}{\Huge{\mathbf{−}}}$​154 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​486
Prod 26 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​404 $\color{#cf222e}{\Huge{\mathbf{−}}}$​529 $\color{#cf222e}{\Huge{\mathbf{−}}}$​125

Problem

Choosing whether an agent opens as Chat or CLI is split between Settings → Chat → Providers and a small control under Default Agent. Antigravity's runtime and sign-in are separate from its agent settings too.

What changes

Each chat-capable agent has its Chat | CLI choice in its own row in Settings → Agents. The duplicate Providers section and Default Agent mini switch are removed. Antigravity's runtime install/remove and chat sign-in move into its expanded row. Search points to the unified Agents list. Chat UI keeps its existing Experimental gate.

Agents with an available downloaded chat program appear as installed even without their CLI; CLI is disabled when native CLI absence is known. Existing explicit CLI choices stay selected until the user chooses Chat. Supported agents missing locally keep their preference editor under Available to install, because that client preference also controls launches on paired hosts.

The rows use the existing saved-choice writer. No saved format, wire, login protocol, launch policy or default-agent capability changes. Chat-only rows retain the existing Default behavior; an already saved chat-only default remains displayed.

Review fixes

The review restored preference/setup access independently of local CLI discovery, separated native mode facts from contextual WSL CLI settings, and retained each expanded row through the runtime installation transition.

Validation

Full review: three initial reviewers, one continued round accepting all three repairs, and a fresh whole-mechanism reference/readiness/performance review. Eight focused files: 56 tests pass, covering existing saved choices, queued writes, actual paired-menu outcomes, native/WSL inventory separation, stable install-to-sign-in presentation, and moved runtime/sign-in command and failure parity. Normal commit hook passed. Main was merged once before final verification. Head CI is green (static/typecheck, both package jobs and all 12 shards; one unchanged main timing test passed on a failed-jobs-only retry). Seven hidden-renderer screenshots on M4Air cover the unified settings, runtime/sign-in placement, Experimental gating and narrow layout. No agent session or real login was needed for this settings-only move. The later test-only typing repair passed 13 focused tests and preserves screenshot evidence; the final status comment includes images and limits.

Related: #36110 and #36171 add the graduation and default presentation separately; this PR lands safely on main with Chat UI still experimental.

Each agent's open-as-chat choice lived in two places: Settings > Chat >
Providers and a Chat | CLI control under Default Agent. The choice now
lives only in each chat agent's row of Settings > Agents > Installed,
writing the same per-agent setting. Agents whose chat runs without their
CLI (a downloaded chat runtime) are listed as installed with CLI
unavailable, and the downloaded runtime and chat sign-in move into the
agent's row. Search and the install card's hint point at Agents. Shown
only while Chat UI is on, as before.
@brennanb2025
brennanb2025 marked this pull request as ready for review October 30, 2026 02:11
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The Agents catalog now provides per-agent Chat or CLI choices and managed chat-runtime details. Chat Providers controls and their search entry are removed from the Chat settings page. Search visibility, translations, managed-runtime hints, and documentation now refer to the Agents settings location.

Priority: Normal

Merge Risk: Low · up to a2d50

Managed-runtime rows can expand to an empty details area while setup is still pending; this is localized but should be corrected.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 21.43% 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.
Description check Warning The description follows the template's main sections (ELI5 is missing, though; What changes, Problem, Validation, and Review fixes are present in non-template form). The description covers the problem… Add an ELI5 section in plain language. Add a Linked Issue reference (for example, Fixes #NNNN) or state why none applies. Add a Before/After visual proof for the Settings → Agents change, or write N/A with a reason. Update the Testing sec…
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: moving the Chat or CLI choice into each agent row and removing Chat → Providers.
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.
Full details: Docstring Coverage

Explanation

Docstring coverage is 21.43% 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 14 functions across 16 files.

Resolution

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

Full details: Description check

Explanation

The description follows the template's main sections (ELI5 is missing, though; What changes, Problem, Validation, and Review fixes are present in non-template form). The description covers the problem, the change, the mechanism, and extensive validation, so the core intent is clear. However, it omits several required template sections: ELI5 is absent, Linked Issue has no Fixes # reference, Visual Proof is not filled in with a before/after comparison (the author mentions hidden-renderer screenshots but does not attach or link them in the description), the Testing checklist is not ticked, and the AI Disclosure and Agent skill upstream boundary sections are not addressed. The Why section is not labeled as such, though the Problem section partly covers motivation.

Resolution

Add an ELI5 section in plain language. Add a Linked Issue reference (for example, Fixes #NNNN) or state why none applies. Add a Before/After visual proof for the Settings → Agents change, or write N/A with a reason. Update the Testing section with the platforms actually tested and tick the applicable checkboxes. Complete the AI Disclosure section if applicable. Address the Agent skill upstream boundary checkbox. Rename or add a Why section that explains why this approach was chosen over alternatives.

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.

Follow-up Comments

Outside diff Do not expose the runtime expansion before the runtime is active.

273-295: Minor · Functional Correctness · Quick win

Do not expose the runtime expansion before the runtime is active.

For a qualifying local managed-chat agent, chatRuntime is defined before useManagedRuntimeInstall reports active. AgentCatalogRow then shows the expand control, while AgentChatRuntimeArea returns null for pending and inactive. The user can open the row and see no runtime content. Pass an observation-aware expansion condition, or otherwise attach the runtime element only when the observation is active. This preserves active-runtime behavior.

Open the source location


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: 1351b140-b7cd-4526-aca0-b669b76a9b2c
Commits

Reviewing files that changed from the base of the PR and between b6a33b7 and a2d5031.

Files selected for processing: 2
  • src/renderer/src/components/settings/AntigravityChatSignInRow.test.tsx
  • src/renderer/src/components/settings/native-chat-provider-choice.test.tsx

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

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Choosing Chat or CLI was split across Chat → Providers and a small Default Agent control. The choice now lives in each agent's Settings → Agents row, with Antigravity's runtime and sign-in in its expanded row. The existing Experimental gate, saved choices and launch behavior remain.

The full review repaired three regressions: remote-only agents keep an editable preference, native CLI availability is separate from WSL inventory, and installing a runtime keeps its row expanded for sign-in. Two substantive review rounds are complete, plus fresh reference/readiness/performance and final-head checks; no open blocking findings.

Validation: 56 distinct focused tests across eight files, including existing-user settings identity, queued writes, paired-menu outcomes, native/WSL separation, stable row identity and moved sign-in command/failure parity. Head CI is green: static/typecheck, both package jobs and all 12 test shards passed in run 40990934329. The unchanged main timing test in acp-chat-worker-error-escalation.test.ts:231 failed once and passed on the failed-jobs-only retry; successful jobs were retained.

Settings screenshot validation passed on b6a33b72490d55e11752d398edf536f553771b07 on M4Air. The later a2d503110ea78a9ce3ea8c17d81c715256ee3808 changes only test typing/query options; its assertions and inputs were independently rechecked, and 13 focused tests pass. No shipped file changed after screenshots. The isolated copy stopped gracefully; all eight real-config hashes were unchanged.

No agent session or real login was run: this is a settings-surface move with unchanged login commands. The profile had Antigravity's CLI; CLI-absent and section-move states are covered by renderer tests rather than these screenshots. The pre-existing inability to newly select a chat-only agent as Default remains outside this change; existing saved defaults are retained. Runtime details can briefly be empty while capability discovery resolves; this is deferred cosmetic polish, with no saved-choice or setup-command change.

For Brennan's review

Agents and per-agent choices

Agents and per-agent choices

Antigravity runtime before installation

Antigravity runtime before installation

Antigravity runtime installed and sign-in

Antigravity runtime installed and sign-in

Chat without Providers

Chat without Providers

Experimental off

Experimental off

Narrow layout

Narrow layout

Narrow layout, lower rows

Narrow layout, lower rows

Judgment spots: native/contextual inventory, saved preference and missing CLI, stable row identity.

@brennanb2025
brennanb2025 merged commit ca2148a into main Oct 30, 2026
75 of 77 checks passed
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