Skip to content

CL-6459: Keep every deliberately created agent workbench in the sidebar - #186

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-6459-sidebar-rows
Aug 21, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-6459-sidebar-rows

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

+ New Workbench appeared to replace the existing Myra row instead of adding one.

dedupeAgentChatsByTitle (CL-6271) collapsed all agent-DM chats by the agent's mention handle, keeping only the most recently active row per handle. Since instant-agent-create.ts mints every new workbench as a chat against the bench's setup agent, every workbench a person created with that agent shared one handle — so the newest one took over the single "Myra" row and the rest vanished from the sidebar. The data was always right; only the row projection was lossy.

definitionId is the discriminator: "+ New Workbench" always mints against the bench's own currently resolved definition, so N deliberate creations share one definition id, while CL-6271's cross-tenant leftover carries a different one. Per agent identity the most recently active chat now names the live definition, and only chats under some other definition — genuine superseded siblings — drop out. Every chat of the live definition keeps its row.

Tests: N workbenches against one definition each keep a row; a stale ancestor sibling drops without taking the live definition's workbenches with it; CL-6271's original collapse and CL-6413's same-title/different-handle case are unchanged.

Fixes CL-6459

@TheGreatAxios
TheGreatAxios merged commit 5250b25 into main Aug 21, 2026
0 of 2 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-6459-sidebar-rows branch August 25, 2026 15:29
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