Repository navigation
feat(agent-rows): label sidebar and dashboard rows with conversation names - #9989
Conversation
Sidebar worktree-card and dashboard agent rows always show the last message sent to the agent, so rows relabel on every turn and a 'continue' prompt becomes the row's name. Add an opt-in Agents setting that labels rows with the conversation name instead, resolved with the tab bar's precedence: manual rename, quick-command label, OpenCode session title, generated title (behind its existing setting), then the agent-set live title. Live titles count only when they carry a real name - status decoration is stripped, and pure status, identity-echo, spinner+cwd, and placeholder titles fall back to the last-message label. Subagent child rows keep their own descriptions. Locale note: sync:localization-catalog also restored parity for keys already missing on main (add-host, sleep-worktree copy).
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds shared conversation-name resolution with title precedence and filtering, live-tab lookup with subagent handling, and tests for both. Dashboard and compact sidebar agent rows now use conversation names with existing text fallbacks. Locale files add workspace connection, sleep failure, SSH, agent-row, and editor settings strings. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches📝 Generate docstrings
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 550a7d9f-2b34-4d05-ba70-8ba73a59f1e8
📒 Files selected for processing (16)
src/renderer/src/components/dashboard/DashboardAgentRow.tsxsrc/renderer/src/components/dashboard/use-agent-row-conversation-name.test.tssrc/renderer/src/components/dashboard/use-agent-row-conversation-name.tssrc/renderer/src/components/settings/AgentsPane.tsxsrc/renderer/src/components/settings/agent-row-conversation-name-copy.tssrc/renderer/src/components/settings/agents-search.tssrc/renderer/src/components/sidebar/worktree-card-compact-agent-row.tsxsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/shared/agent-row-conversation-name.test.tssrc/shared/agent-row-conversation-name.tssrc/shared/constants.tssrc/shared/types.ts
Row data patches live entries in place and keeps the tab snapshot from row creation, so a rename or agent-set title landing after the row was built never reached the conversation-name resolver. Select the current tab from the store in the hook; retained rows without a live tab keep the snapshot fallback.
Manual QA (dev build, CDP-driven, this branch)Verified live on the rendered app (electron-vite dev build of this branch, isolated temp profile; seeded one workspace 1. Default (toggle off) — rows label by last message sent (unchanged behavior): 2. Toggle on + agent-set title 3. Manual tab rename 4. Settings → Agents switch, findable via search ("conversation name"): Also verified: toggling off reverts the row to the last message immediately, even while a custom name exists (default stays last-message per product decision). Fix found during QASidebar row data patches live entries in place and keeps the tab snapshot from row creation, so a rename/agent title landing after the row was built never reached the resolver. Pushed a839195 — the hook now reads the current tab from the store (retained rows keep the snapshot fallback), with a regression test. Not covered
(Screenshots hosted on the |
Reject native provider/status titles and Windows/UNC cwd frames so conversation-name mode falls back to the user's last message instead of relabeling rows with identity or path text. Keep default-off and subagent rows off the tab map, and share a WeakMap-backed tab index across mounted rows to avoid repeated linear scans on store writes.
Always prefer a usable conversation name for sidebar and dashboard agent rows, falling back to the last message when the resolver rejects a title. Remove the preference, settings UI, search copy, and catalog entries. Keep subagent labels unchanged and reject generic Terminal N placeholders so partial tab snapshots cannot hide meaningful prompts.
|
CI note for the always-on revision ( |
…w-conversation-name
…w-conversation-name # Conflicts: # src/renderer/src/i18n/locales/es.json # src/renderer/src/i18n/locales/ja.json # src/renderer/src/i18n/locales/ko.json # src/renderer/src/i18n/locales/zh.json
…ne's title Sidebar and dashboard agent rows render per pane but took their name from `tab.title`, which by design carries only the focused pane's live title — pty-connection keeps it that way so two agents in splits do not make the tab title flicker. In a split tab that title names one pane and mislabels its siblings, and it flips as focus moves, so every row in the tab showed the same name and all of them changed when the user clicked another split. Drop the live title for rows whose tab has more than one pane and let each row keep its own per-pane label. Tab-owned names (customTitle, quickCommandLabel, generatedTitle) still apply to every row in the tab — those are names the user gave the tab, not one pane. Single-pane tabs, which are the case stablyai#9989 was written for, are untouched. The split test is the layout root being a split node, so the row subscribes to splits rather than to every title frame. Fixes stablyai#11069 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…names (stablyai#9989) * feat(agent-rows): opt-in conversation-name labels for agent rows Sidebar worktree-card and dashboard agent rows always show the last message sent to the agent, so rows relabel on every turn and a 'continue' prompt becomes the row's name. Add an opt-in Agents setting that labels rows with the conversation name instead, resolved with the tab bar's precedence: manual rename, quick-command label, OpenCode session title, generated title (behind its existing setting), then the agent-set live title. Live titles count only when they carry a real name - status decoration is stripped, and pure status, identity-echo, spinner+cwd, and placeholder titles fall back to the last-message label. Subagent child rows keep their own descriptions. Locale note: sync:localization-catalog also restored parity for keys already missing on main (add-host, sleep-worktree copy). * fix(agent-rows): read the live tab so late renames and titles surface Row data patches live entries in place and keeps the tab snapshot from row creation, so a rename or agent-set title landing after the row was built never reached the conversation-name resolver. Select the current tab from the store in the hook; retained rows without a live tab keep the snapshot fallback. * fix(agent-rows): reject status labels and bound lookup work Reject native provider/status titles and Windows/UNC cwd frames so conversation-name mode falls back to the user's last message instead of relabeling rows with identity or path text. Keep default-off and subagent rows off the tab map, and share a WeakMap-backed tab index across mounted rows to avoid repeated linear scans on store writes. * feat(agent-rows): make conversation names the default Always prefer a usable conversation name for sidebar and dashboard agent rows, falling back to the last message when the resolver rejects a title. Remove the preference, settings UI, search copy, and catalog entries. Keep subagent labels unchanged and reject generic Terminal N placeholders so partial tab snapshots cannot hide meaningful prompts. * chore(i18n): sync catalog after main merge * fix(agent-rows): preserve same-tab child labels




Why
Sidebar worktree-card and dashboard agent rows label with the last message sent to the agent, so rows relabel every turn and short replies such as "continue" become the row name. Tabs already carry stable conversation names through manual renames, quick commands, semantic session titles, generated titles, and agent-set live titles.
What
Both row surfaces now prefer the conversation name and fall back to the last message when no usable name exists. There is no additional preference: row identity consistently follows tab identity.
Resolution (
src/shared/agent-row-conversation-name.ts) mirrors tab-title precedence:customTitle)OC | …)Leading status decoration is stripped. Pure status titles, provider identity echoes, generic
Terminal Nplaceholders, default titles, and POSIX/Windows/UNC path-like titles are rejected. Subagent child rows keep their own descriptions because the parent tab name would mislabel them.Performance
Mounted rows use a WeakMap-backed per-tab-array index. One immutable worktree tab array is indexed once and shared across rows, replacing repeated linear scans on store writes while allowing old arrays to be collected.
Testing
Notes