claude-code - 💡(How to fix) Fix [BUG] VS Code extension: session rename reverts to auto-generated name from first prompt [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52352Fetched 2026-04-24 06:09:27
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

In the Claude Code VS Code extension, renaming a session via the sidebar does not persist. After typing a new name and confirming, the session title immediately reverts to the auto-generated name that was derived from the first prompt/message in that session.

What Should Happen?

Once a user manually renames a session, that custom name should persist. The rename should take priority over the auto-generated title and not be overwritten.

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code in the VS Code extension
    1. Start a new session and send any message (e.g. "hello")
    1. In the sidebar, hover over the session entry — a pencil (edit) icon appears
    1. Click the pencil icon and type a new custom name, then confirm (Enter)
    1. Observe: the session name immediately reverts to the auto-generated title based on the first prompt

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

latest

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

extent analysis

TL;DR

The issue can likely be resolved by modifying the session renaming logic to prioritize custom names over auto-generated titles.

Guidance

  • Review the code responsible for handling session renaming in the VS Code extension to ensure it correctly updates the session title and persists the change.
  • Verify that the auto-generated title is not being overwritten after a custom name is set, potentially by adding a flag or condition to prevent this.
  • Check the data storage or caching mechanism used by the extension to ensure that custom session names are being saved correctly.
  • Test the renaming functionality with different session names and scenarios to identify any patterns or edge cases that may be contributing to the issue.

Example

No code snippet can be provided without more information about the extension's internal implementation.

Notes

The issue may be related to the extension's logic for handling session titles, and resolving it will likely require modifications to the extension's codebase. Without more information about the extension's internal workings, it's difficult to provide a more specific solution.

Recommendation

Apply a workaround by modifying the session renaming logic to prioritize custom names, as this is likely to be a more straightforward and targeted solution than attempting to identify and fix a potential regression.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] VS Code extension: session rename reverts to auto-generated name from first prompt [1 comments, 2 participants]