Repository navigation
Update chat in editor titles after rename tool - #331509
Merged
Dmitriy Vasyura (dmitrivMS) merged 15 commits intoAug 21, 2026
Merged
Conversation
Fixes #331487 Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Dmitriy Vasyura (dmitrivMS)
requested review from
Don Jayamanne (DonJayamanne) and
Sandeep Somavarapu (sandy081)
August 18, 2026 17:14
Dmitriy Vasyura (dmitrivMS)
enabled auto-merge (squash)
August 18, 2026 17:14
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Agent Host chat editor and session-list titles after live rename actions.
Changes:
- Selects per-chat titles for multi-chat sessions.
- Preserves session titles for sole default chats.
- Adds live title synchronization and targeted tests.
Show a summary per file
| File | Description |
|---|---|
agentHostSessionHandler.ts |
Resolves and synchronizes editor titles. |
agentHostSessionListStore.ts |
Applies live title actions to session-list entries. |
agentHostChatContribution.test.ts |
Tests session-list and editor title updates. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 3/3 changed files
- Comments generated: 1
- Review effort level: Balanced
Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Review details
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListStore.ts:352
- This title is only retained in the current
_entriesvalue. A default-chat rename in a multi-chat session updates the chat catalog but not the session title (agentService.ts:1175-1200), while a laterlistSessions()refresh rebuilds metadata fromliveSummary.title(agentService.ts:1276-1284). Consequently, an action received before the entry is cached—or any later cache invalidation such as a workspace change—restores the old session title. Please retain the effective default-chat title independently and reapply it during refresh, or expose that effective title fromlistSessions().
const cached = this._entries.get(key);
if (!cached || cached.summary.title === title) {
- Files reviewed: 3/3 changed files
- Comments generated: 0 new
- Review effort level: Balanced
Dmitriy Vasyura (dmitrivMS)
marked this pull request as draft
August 18, 2026 18:21
auto-merge was automatically disabled
August 18, 2026 18:21
Pull request was converted to draft
Collaborator
Author
|
Will wait for the #331394 to merge first |
Collaborator
Author
Thank you! |
Co-authored-by: Copilot <[email protected]>
Sandeep Somavarapu (sandy081)
previously approved these changes
Aug 19, 2026
Dmitriy Vasyura (dmitrivMS)
marked this pull request as ready for review
August 19, 2026 23:32
Dmitriy Vasyura (dmitrivMS)
requested a review
from Sandeep Somavarapu (sandy081)
August 19, 2026 23:32
Contributor
There was a problem hiding this comment.
Review details
Suppressed comments (1)
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.ts:1467
- Renaming an open chat still dispatches
SessionTitleChangedto the owning session URI below. Once a peer has caused the default chat title to be snapshotted, this changes only the session title, so the addressed editor tab keeps its old catalog title; renaming a peer editor also renames the owning session instead of that peer. Dispatch through the mapped chat channel when one is available so the new host-side chat/default routing is exercised.
chatTitle,
- Files reviewed: 9/9 changed files
- Comments generated: 1
- Review effort level: Balanced
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Connor Peet (connor4312)
approved these changes
Aug 21, 2026
Dmitriy Vasyura (dmitrivMS)
deleted the
dev/dmitriv/fix-editor-chat-rename
branch
August 21, 2026 19:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rename_chattool, client/UI editor renames, and/rename, while keeping peer-chat titles independentroot/sessionSummaryChangedrename_chatmodel description to match the default-chat/session and independent-peer behaviorTesting
npm run eslint --on the changed Agent Host and workbench filesnpm run typecheck-client/renamerouting, restored multi-chat catalogs, snapshot races, tool definitions, editor titles, and editor-window session-list behaviorFixes #331487