Files
vscode/.github
Sandeep Somavarapu ece376a4db sessions: persist main chat rename across restore for agent host (#323785)
* sessions: persist main chat rename across restore for agent host

For agent host multichat sessions, renaming the default/main chat sets an
independent title persisted on the host as customChatTitle:<defaultChatUri>.
However restoreSession always re-seeded the default chat with an empty title
(inherit the session title), so after a process restart or idle eviction the
main chat tab reverted to the session title. Peer chats were already restored
via _restorePeerChats.

Read the persisted default-chat title on restore and seed it back through
restoreSession/_ensureDefaultChat, mirroring the peer-chat restore path.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* sessions: clarify _readPersistedChatTitle doc comment

Addresses CCR feedback: the helper now reads the default chat's title too,
not only peer chats.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-30 22:18:39 +00:00
..