[BUG] Chat rename reverts after switching to another chat (requires VS Code restart to persist)
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I have searched existing issues and this hasn't been reported yet
This is a single bug report
I am using the latest version of Claude Code
Description
Renaming a chat session in the VS Code extension does not persist until VS Code is fully restarted. If you rename a chat and then switch to a different chat without restarting, the rename is lost and the original auto-generated name reappears.
Steps to reproduce
- Open Claude Code in VS Code
- Rename a chat session (e.g., from auto-generated title to "My Custom Name")
- Switch to a different chat session
- Switch back to the renamed chat
- Observe that the chat title has reverted to the old auto-generated name
Expected behavior
The renamed chat title should persist immediately after renaming, surviving chat switching without requiring a VS Code restart.
Actual behavior
The rename is only held in memory and reverts to the old name when switching between chats. The rename only persists if you close and reopen VS Code after performing it.
Environment
- OS: 26.4 (25E246)
- VS Code version: 1.112.0 (Universal)
- Claude Code extension version: 2.1.87
What Should Happen?
The renamed chat title should persist immediately after renaming, without requiring a VS Code restart.
Error Messages/Logs
Steps to Reproduce
- Open Claude Code in VS Code
- Rename a chat session
- Switch to a different chat session
- Switch back to the renamed chat
- The chat title has reverted to the old auto-generated name
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.87
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
The rename persists correctly if VS Code is fully restarted after renaming.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗