[BUG] Chat rename reverts after switching to another chat (requires VS Code restart to persist)

Resolved 💬 6 comments Opened Mar 30, 2026 by sergeyVasilkov Closed May 5, 2026

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

  1. Open Claude Code in VS Code
  2. Rename a chat session (e.g., from auto-generated title to "My Custom Name")
  3. Switch to a different chat session
  4. Switch back to the renamed chat
  5. 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

  1. Open Claude Code in VS Code
  2. Rename a chat session
  3. Switch to a different chat session
  4. Switch back to the renamed chat
  5. 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.

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗