Repository navigation
Use each native chat’s agent for naming by default - #32106
Conversation
|
Note Reviews pausedIt 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 Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

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 winBound the final root-exit wait.
For local Grok or Antigravity naming, the 60-second work deadline ends before
generate()waits forrootExited. The managed close operation is bounded, but it may return while the root remains live. In that case,onExithas 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
Files selected for processing: 24-
src/main/acp/acp-structured-child-lifecycle.tssrc/main/acp/acp-structured-session-adapter-deps.tssrc/main/acp/acp-structured-session-adapter.tssrc/main/native-chat/agent-session-wire/structured-agent-session-adapter-router.tssrc/main/native-chat/agent-session-wire/structured-agent-session-adapter.tssrc/main/native-chat/structured-chat-naming-execution.test.tssrc/main/native-chat/structured-chat-naming-publication.test.tssrc/main/runtime/structured-agent-runtime-registrations.tssrc/main/runtime/structured-chat-naming-runtime.test.tssrc/main/runtime/structured-chat-naming-runtime.tssrc/main/text-generation/conversation-name-generation-request.tssrc/main/wsl/wsl-orcad-chat-provider-fixture.tssrc/renderer/src/components/settings/ChatNamingSetting.test.tsxsrc/renderer/src/components/settings/ChatSettingsSection.test.tsxsrc/renderer/src/components/settings/SourceControlActionRecipeRow.tsxsrc/renderer/src/components/settings/chat-naming-persistence.test.tsxsrc/renderer/src/components/settings/source-control-ai-settings-persistence.test.tsxsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/pt.jsonsrc/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.
-
|
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 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: Previously reviewed head: The OMP dependency has landed. This review does not grant permission to merge the PR. Previous conflict refresh: 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: 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. |
[Medium impact] No new blocking issue was found; merge remains subject to the author’s stated OMP prerequisite. SummaryNative chats now use their own provider for naming by default.
No actionable findings were established. Acknowledgments:
|








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:
Advanced recipe controls:
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:
Claude and Codex:
Grok and native Antigravity with template-only naming:
Current integration: main merged at 731d8ae, preserving current-context
/clearnaming, 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:
c5d037a8daee896dd9c43212cbcc10a42986afbemerges main4cee4b1ba63033d4a76c8c8c8091319ed579a20eto 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.