Skip to content

Use each native chat’s agent for naming by default - #32106

Merged
brennanb2025 merged 12 commits into
mainfrom
brennanb2025/chat-naming-default-agent
Oct 29, 2026
Merged

brennanb2025 merged 12 commits into
mainfrom
brennanb2025/chat-naming-default-agent

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1178 $\color{#cf222e}{\Huge{\mathbf{−}}}$​6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1172
Prod 35 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​765 $\color{#cf222e}{\Huge{\mathbf{−}}}$​86 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​679

Native chats currently use the globally configured naming agent, which can differ from the agent in the conversation. The alternate-agent controls also occupy the main naming settings view.

Chat naming now runs an independent task using the chat’s own agent and account by default; the model may differ. Settings → Chat → Chat naming puts the existing alternate-agent configuration under Advanced. Saved explicit agents, custom commands, and nonblank CLI argument recipes retain their existing resolver behavior, including the distinction between an absent agent and an explicit default. Template-only customization uses the chat’s provider.

The own-agent route covers all eight native providers. The shared OMP prompt-delivery repair in #34644 has merged into main and is included here. Claude, Codex, Pi, OpenCode, OpenCode2, and OMP retain CLI generation. Grok and native Antigravity use fresh text tasks owned by the existing adapter, with a work deadline and output limit. Naming does not resume or add a turn to the original conversation. Cleanup targets only the task’s own helper; a cleanup failure preserves any valid title. These follow the common pattern for independent title generation, with saved CLI recipes and native configuration retained for compatibility.

Validation at 68a2452: all six named suites pass, 92 tests. Separate identity fault runs fail the expected session, extension-prompt, and mapped-turn cases, then pass with the exact production code restored. The ordinary commit hook and exact-head CI pass, including all three WSL distro contracts. The final source/reference comparison is complete. Rendered Settings default and Advanced checks pass on this head, with no agents launched. Real previous-build upgrade and healthy Claude/Codex/Grok/native Antigravity naming and replies also passed on this head. Recorded-output and N/10N catalog-operation contracts now pass on 3228d33. OpenCode1/2 recordings yield titles through the actual request/parser route; Pi OAuth and OMP empty-output recordings exercise genuine failure results, with no successful Pi/OMP claim. The prior reviewed head 896df56 passed all seven workflows (39 successful checks, 21 skips); source and reference verification were complete on the previously reviewed head dda18d4. The OMP transport prerequisite is satisfied by merged #34644; the integrated contract checks the landed prompt-file transport.

Review classification: full path. This changes an existing default, saved settings behavior, account selection, and process ownership.

Rendered Settings on 68a2452 (whole window, branch only):

Default naming:

Chat naming default

Advanced recipe controls:

Chat naming Advanced

Real runtime evidence on 68a2452: the prior build created a Claude conversation and saved explicit naming recipe; both survived a graceful upgrade, and the conversation produced another reply. Fresh Claude and Codex chats each generated a title using their own provider despite a different global default, then completed a second reply. Native Grok and Antigravity each generated a title with template-only customization and completed two replies. Original provider handles and journals stayed intact; naming prompts did not enter the original conversations. Recorded helper roots and known children closed, and exact Antigravity helper files were absent. All 168 recorded/known process identities were absent at final teardown, and the copied sign-in profiles were removed.

Limits: Grok completed its text task before root exit 137; this is not a graceful helper exit. Its exact cloud deletion outcome was not observed because the passive protocol observer omitted that extension and its acknowledgement. Complete historical descendant-tree proof is not claimed. Successful-title regeneration is unavailable through this UI; it was not bypassed or manufactured. Existing deterministic contracts cover retry and cleanup failure ordering. The remaining Pi/OMP/OpenCode/OpenCode2 output evidence is separate from these four real runtime checks.

Previous build and same conversation after upgrade:

baseline-chat.png

upgraded-chat.png

Claude and Codex:

claude-chat.png

codex-chat.png

Grok and native Antigravity with template-only naming:

grok-second-chat.png

antigravity-second-chat.png

Current integration: main merged at 731d8ae, preserving current-context /clear naming, both CLI/native execution checks, Antigravity stdin, Kimi decoding, ACP diagnostics and at-rest commands. All 22 named integration suites passed (330 tests). The settings-only optional-arguments type correction at 2c3133c passed five suites (32 tests). The test-only proof commit 3228d33 passed seven suites (74 tests), then the exact-head new contracts passed 20 tests.

The operation contracts drive actual Settings edits and runtime naming at 100 and 1,000 saved catalog records, counting real copied rows/bytes and selected-model reads. They enforce linear upper bounds (Settings two copies, CLI three, native two; remote/WSL zero work), without claiming a measured latency regression. Existing QA and screenshots on 68a2452 carry across the main merge and these changes; no new runtime flow changed.

Merge prerequisite satisfied: shared OMP prompt delivery repair #34644 merged as da31480 and is included through main. This fixes the pre-existing shared generation defect for all OMP consumers. This PR keeps the shared mechanism and the chat’s own provider; its runtime contract checks the staged prompt bytes, file argument, absent stdin payload and cleanup while retaining the authentic empty-output failure recording. Successful repaired-delivery live QA belongs to #34644.

Previous reviewed head: 896df56. The final test-only optional-environment correction retains the exact account assertion and passed 26 tests; the normal hook passed. All seven workflows pass, including all five unit shards, Windows packaging, cross-version wire, changed e2e, three WSL distros, persistence and CodeQL. The automated null-default suggestion was independently checked against the requested default and rejected: null/absent with blank args intentionally uses the chat agent, while nonblank CLI-argument recipes preserve the old null/absent distinction. No source change was made for that thread.

Previous main integration: dda18d4. A new blocking conflict required merging main 4cd62c4. The only conflict resolution preserves main’s Claude/Codex/Grok WSL installer and this branch’s Claude naming isolation. The retained independent verifier approved this exact head with no new finding; the whole-mechanism reference comparison and SCALE/OUTPUT proof remain complete. Seven targeted suites passed completely (80 tests). Five local assertions in two unchanged main suites depend on this Mac’s Homebrew-installed CLIs; those are documented local test limits, not passing assertions or an introduced code failure. The explicit merge hook passed. QA68 and retained screenshots carry under the main-merge rule; no changed run-row flow required another app run.

CI on dda18d4 was green: 21 skipped, 39 success. GitHub reports the PR CLEAN and mergeable, out of draft, with no unresolved review threads. The existing watcher completed successfully without a workflow rerun.

Current integration: c5d037a8daee896dd9c43212cbcc10a42986afbe merges main 4cee4b1ba63033d4a76c8c8c8091319ed579a20e to resolve three blocking conflicts. It preserves main’s preparation-failure classification, option actions independent of inventory, handling of models omitted from listings, and coded naming-failure publication. Grok and Antigravity naming failures now use that same code/translation mechanism, with agent-named actionable copy and raw provider diagnostics kept in logs. The unchanged launch-environment method moved into its existing base class to retain the repository’s line rule after integration. The retained independent verifier approved this exact head with no new finding; refs=done, performance/output proof and QA68/screenshots carry. No broken run-row flow was found, so no app rerun was needed.

All selected named suites have successful outcomes after their relevant integration corrections. The integration batch passed 10 suites / 185 tests; the final follow-up passed 4 suites / 56 tests, with overlap. Runtime and Spanish renderer contracts cover both native providers’ thrown/empty failures and discard raw diagnostics. The OMP route contract observes exact staged prompt bytes, file argument, no prompt on stdin, and owned-directory cleanup; the authentic empty-output recording remains a failure control. The required explicit merge hook passed before the merge commit.

Final-head CI is green: 21 skipped, 37 success. The single watcher finished successfully without a workflow rerun. GitHub reports this exact head CLEAN, mergeable and out of draft, with no unresolved review threads.

@brennanb2025
brennanb2025 marked this pull request as ready for review October 22, 2026 21:58
@coderabbitai

coderabbitai Bot commented Oct 22, 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
  • 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: 025c22da-9d13-468c-a781-f354d6967223
Commits

Reviewing files that changed from the base of the PR and between 731d8ae and 2c3133c.

Files selected for processing: 2
  • src/main/native-chat/structured-chat-naming-execution.test.ts
  • src/renderer/src/components/settings/ChatNamingSetting.tsx

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

Walkthrough

Chat naming can use the chat’s agent or a configured CLI agent. The runtime resolves naming recipes, prompts, and launch environments. Grok and Antigravity can use independent ACP text tasks for native naming. Settings expose agent choices and CLI-argument guidance in an advanced disclosure, with updated translations and tests.

Priority: Normal

Merge Risk: Minimal · up to 2c313

No concrete merge-blocking risk remains from the reviewed naming-agent state handling.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description follows the template's main sections: ELI5, What Changed, Why, Testing, Visual Proof, and Checklist-style evidence. It explains the behavior change and the mechanism at a high level. H… Add a plain-language ELI5 section. Add a linked issue in the form 'Fixes #', because outside contributors must link an actual issue. Fill in the AI Disclosure section, unless the author is a StablyAI team member. Tick or address the…
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: native chats now use their own agent for naming by default.
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: Description check

Explanation

The description follows the template's main sections: ELI5, What Changed, Why, Testing, Visual Proof, and Checklist-style evidence. It explains the behavior change and the mechanism at a high level. However, it does not fill the ELI5 section, leaves the Linked Issue section with only a PR reference (#32106 / #34644 are PRs, not issues, and 'Fixes #' is empty), omits the required AI Disclosure, leaves the Review section's agent-skill checkbox unaddressed, and has no 'Notes' or 'Checklist' tick-off. The text is long, mixes several validation logs with hashes, and does not follow the 'Testing' checklist format. Most of the body still addresses the template's intent, so the description is mostly complete with notable gaps in required fields.

Resolution

Add a plain-language ELI5 section. Add a linked issue in the form 'Fixes #<number>', because outside contributors must link an actual issue. Fill in the AI Disclosure section, unless the author is a StablyAI team member. Tick or address the Agent skill upstream boundary checkbox. Restructure the testing evidence into the template's 'Testing' section with the platforms actually tested (macOS, Linux, Windows, SSH). Tie the 'Why' section to the alternatives considered. Trim the validation logs to the reviewer-relevant steps and state explicitly whether the Checklist items (lint, typecheck, test, build) passed locally.

Finishing Touches
📝 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

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Bound the final root-exit wait. · acp-text-task.ts:44-55

src/main/acp/acp-text-task.ts:44-55
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Bound the final root-exit wait.

For local Grok or Antigravity naming, the 60-second work deadline ends before generate() waits for rootExited. The managed close operation is bounded, but it may return while the root remains live. In that case, onExit has no deadline, so a valid title can remain pending indefinitely. Keep the retained connection available for the existing shutdown or account retry, but allow naming to complete after a bounded final wait.


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: c156bf64-bdbe-4124-97d7-412a018a4bba
Commits

Reviewing files that changed from the base of the PR and between 68a2452 and 731d8ae.

Files selected for processing: 24
  • src/main/acp/acp-structured-child-lifecycle.ts
  • src/main/acp/acp-structured-session-adapter-deps.ts
  • src/main/acp/acp-structured-session-adapter.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-adapter-router.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-adapter.ts
  • src/main/native-chat/structured-chat-naming-execution.test.ts
  • src/main/native-chat/structured-chat-naming-publication.test.ts
  • src/main/runtime/structured-agent-runtime-registrations.ts
  • src/main/runtime/structured-chat-naming-runtime.test.ts
  • src/main/runtime/structured-chat-naming-runtime.ts
  • src/main/text-generation/conversation-name-generation-request.ts
  • src/main/wsl/wsl-orcad-chat-provider-fixture.ts
  • src/renderer/src/components/settings/ChatNamingSetting.test.tsx
  • src/renderer/src/components/settings/ChatSettingsSection.test.tsx
  • src/renderer/src/components/settings/SourceControlActionRecipeRow.tsx
  • src/renderer/src/components/settings/chat-naming-persistence.test.tsx
  • src/renderer/src/components/settings/source-control-ai-settings-persistence.test.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/zh.json
Files skipped from review as they are similar to previous changes: 7
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.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; 8 remain after this review.

@brennanb2025

brennanb2025 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Native chats previously used the globally configured naming agent, so a conversation could be named by another provider/account. This change runs an independent naming task with the chat’s own agent by default and puts the existing alternate-agent recipe under Advanced. Saved explicit/custom/argument recipes retain their resolver behavior; naming does not add a turn to the original chat.

OMP prerequisite satisfied: #34644 merged into main as da31480 and is included in this merge. The shared transport repair applies to all OMP generation consumers; no naming-specific fallback was added. The historical empty-output recording remains a failure contract. Successful repaired-delivery live evidence belongs to #34644.

Three review rounds are complete. The takeover merged main at 731d8ae, preserving current-context /clear behavior, both CLI/native execution checks, Antigravity stdin, Kimi decoding, ACP exit diagnostics and at-rest commands. Merge integration type corrections are fixed. The retained independent reviewer completed the whole-mechanism reference comparison, readiness and performance passes; no new proven finding remained after the previous review. The OMP prerequisite is now satisfied by merged #34644.

Executed evidence: 22 named integration suites / 330 tests; seven proof suites / 74 tests; exact proof contracts / 20 tests; final optional-environment correction / 26 tests. Real Settings edits and naming requests at 100 and 1,000 saved catalog records enforce linear copied-row/byte/model-read bounds. Four genuine recorded provider outcomes pass through the actual runtime/request/planner/finalizer/parser/account path: OpenCode1/2 titles, Pi OAuth failure, and OMP empty-result failure. The same Pi input produces matching default/explicit-route failures. These contracts do not claim successful Pi or OMP generation, a latency improvement, or a new live-provider run.

QA was performed on 68a2452: the prior build’s chat and explicit recipe survived a graceful upgrade; Claude and Codex each completed two ordinary replies and generated titles with their own provider despite a different global default; Grok and native Antigravity generated template-only titles and completed two replies. Original handles/journals stayed intact. Settings default and Advanced screenshots passed. Recorded roots/known children closed and exact Antigravity helper files were absent. QA carries across main merge 731d8ae, settings-only optional-arguments correction 2c3133c (renderer/persistence tests; unchanged appearance), and test-only 3228d33 / 896df56. No changed runtime flow required another app round.

Limits retained: successful-title regeneration is unavailable in the successful-title UI; independent Grok cloud deletion and the complete historical descendant tree were not proved. Healthy known-process cleanup is not described as full-tree proof. The conditional uncertain-close retention concern remains deferred without an observed installed survivor; no universal retained-population or total-release bound is claimed.

For Brennan’s review, retained whole-window evidence:

Settings default

Settings Advanced

Previous build

Same chat after upgrade

Claude

Codex

Grok

Native Antigravity

Previously reviewed head: 896df569d82e9c9b7b82cdfe242d30484967904f had all seven workflows passing (39 successful checks, 21 skips), with the review thread resolved. The automated null-default suggestion was refuted against the binding default semantics: null/absent with blank arguments uses the chat agent; customized CLI arguments retain their original null/absent resolver distinction. No new source fix was needed.

The OMP dependency has landed. This review does not grant permission to merge the PR.

Previous conflict refresh: dda18d45fbd09b9f535399120b3409c8dcea6222 merges main 4cd62c4946bfe155c3de5bfcb42463340c32c07c after a new conflict blocked merge. The only resolution preserves main’s three-provider WSL installer and this branch’s Claude naming isolation. The retained reviewer verified the exact merged head: no new finding, unchanged SCALE/OUTPUT contracts, references complete, and QA68/screenshots carry. Seven targeted suites passed completely (80 tests); five local assertions in two byte-unchanged main suites depended on this Mac’s installed Homebrew binaries and are recorded as local test limits. The explicit merge hook passed. No new app round was required.

CI on dda18d4 was green: 21 skipped, 39 success. GitHub reports the PR CLEAN and mergeable, out of draft, with no unresolved review threads. The existing watcher completed successfully without a workflow rerun.

Current integration: c5d037a8daee896dd9c43212cbcc10a42986afbe merges main 4cee4b1ba63033d4a76c8c8c8091319ed579a20e to resolve three blocking conflicts. It preserves main’s preparation-failure classification, option actions independent of inventory, handling of models omitted from listings, and coded naming-failure publication. Grok and Antigravity naming failures now use that same code/translation mechanism, with agent-named actionable copy and raw provider diagnostics kept in logs. The unchanged launch-environment method moved into its existing base class to retain the repository’s line rule after integration. The retained independent verifier approved this exact head with no new finding; refs=done, performance/output proof and QA68/screenshots carry. No broken run-row flow was found, so no app rerun was needed.

All selected named suites have successful outcomes after their relevant integration corrections. The integration batch passed 10 suites / 185 tests; the final follow-up passed 4 suites / 56 tests, with overlap. Runtime and Spanish renderer contracts cover both native providers’ thrown/empty failures and discard raw diagnostics. The OMP route contract observes exact staged prompt bytes, file argument, no prompt on stdin, and owned-directory cleanup; the authentic empty-output recording remains a failure control. The required explicit merge hook passed before the merge commit.

Final-head CI is green: 21 skipped, 37 success. The single watcher finished successfully without a workflow rerun. GitHub reports this exact head CLEAN, mergeable and out of draft, with no unresolved review threads.

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] No new blocking issue was found; merge remains subject to the author’s stated OMP prerequisite.

Summary

Native chats now use their own provider for naming by default.

  • Native chats use their own provider for naming by default.
  • Grok and Antigravity name chats in a fresh helper task.
  • Alternate naming recipes now sit inside Advanced settings.
  • Grok and Antigravity naming failures show provider-specific messages.

No actionable findings were established.

Acknowledgments:

  • brennanb2025 explicitly deferred OMP prompt delivery to prerequisite PR fix: restore OMP commit messages and chat names #34644. OMP naming remains unavailable without that repair; this known dependency is not reported again.
  • brennanb2025 explicitly confirmed that null or absent agents with blank arguments use the chat agent. Nonblank argument recipes intentionally preserve the old null-versus-absent distinction.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Chat naming request] --> B{Explicit agent or nonblank CLI arguments?}
  B -- Yes --> C[Existing recipe resolver]
  C --> D[CLI generation]
  B -- No --> E{Chat provider}
  E -- Grok or Antigravity --> F[Fresh adapter-owned text task]
  E -- Other native provider --> G[CLI generation with chat account]
  D --> H[Clean and save title]
  F --> H
  G --> H
  F --> I[Close only the naming helper]
Loading

Reviews (1) · Last reviewed commit: "Merge origin/main and integrate coded ch..." · Reviewed by Greptile

@brennanb2025
brennanb2025 merged commit 7decee7 into main Oct 29, 2026
58 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/chat-naming-default-agent branch October 29, 2026 09:09
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