[BUG] VS Code extension: session title in history sidebar re-generates mid-session and is overwritten by a recent short message
Problem
In the VS Code extension, the conversation (session) title shown in the history sidebar is expected — per the sessions docs — to be AI-generated once from the first prompt. In practice it is re-generated during the session and gets overwritten by a recent, short user message.
The concrete symptom: I use a one-word command word (Snap) repeatedly inside long-running sessions. Every time I send it, the session title in the sidebar is replaced with Snap. Distinct threads that each use this command all collapse to the same title.
This is different from the already-filed issues about manual renames reverting (#52352, #40781) — I never rename manually. The auto-generated title itself is not staying on the first prompt; it tracks the latest salient message instead.
Steps to Reproduce
- Start a session in the VS Code extension with a meaningful first prompt (sidebar title generates from it, as documented).
- Continue the conversation for many turns.
- Later, send a short one-word message (e.g.
Snap). - Observe the sidebar session title change to
Snap, overwriting the original first-prompt title.
Expected Behavior
Per the docs, the session title should be generated once from the first prompt and remain stable. Either:
- Keep the documented behavior (title = first prompt only, no mid-session regeneration), or
- Provide a setting to disable automatic re-titling / lock the current title, e.g.:
{ "sessionTitle": "static" }
- and/or make
/renamea durable lock that survives subsequent auto-generation.
Impact
I run many concurrent sessions and rely on stable sidebar titles to identify each thread. A recurring command word rewriting the title collapses multiple distinct threads to the same name mid-workflow, so I lose track of which session is which.
Environment
- Claude Code VS Code extension (Agent Host 1.129.1)
- macOS (Darwin 24.6.0)
- Multiple concurrent sessions
Related
- #7229 — terminal window/tab title (different subsystem: OS window title, not the in-app session title)
- #52352, #40781 — manual session rename reverting (related but distinct: this report is about the auto-generated title regenerating without any manual rename)