claude-code - 💡(How to fix) Fix VS Code extension: Session rename reverts to auto-generated name after navigating away [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#47832Fetched 2026-04-15 06:41:03
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×5commented ×1

When renaming a session in the sidebar, the custom name appears to save but reverts to the auto-generated name when navigating away.

Root Cause

When renaming a session in the sidebar, the custom name appears to save but reverts to the auto-generated name when navigating away.

RAW_BUFFERClick to expand / collapse

Description

When renaming a session in the sidebar, the custom name appears to save but reverts to the auto-generated name when navigating away.

Steps to reproduce

  1. Open Claude Code in Antigravity (VS Code-based editor)
  2. In the session sidebar, hover over a session and click the pencil (edit) icon
  3. Type a custom name for the session
  4. Press Enter - the new name appears and looks saved
  5. Click on a different session or interact with the UI elsewhere
  6. Navigate back to the renamed session - the name has reverted to the auto-generated name

Expected behavior

The custom session name should persist after pressing Enter, even when navigating between sessions or restarting the editor.

Actual behavior

The renamed session name displays correctly immediately after pressing Enter, but reverts to the auto-generated name as soon as the user navigates to another session or otherwise interacts with the sidebar. This makes it impossible to organize sessions with custom names.

Environment

  • Claude Code version: 2.1.81
  • Platform: macOS (Darwin 25.1.0)
  • Editor: Antigravity (based on VS Code)

Notes

The behavior is consistent and reproducible on every attempt. The rename never persists regardless of how many times it is retried. This occurs specifically in Antigravity, which is based on VS Code, so it may also affect the standard VS Code extension.

extent analysis

TL;DR

The issue can likely be resolved by ensuring that the custom session name is properly persisted when the user navigates away from the session.

Guidance

  • Verify that the Enter key press event is correctly triggering the save functionality for the custom session name.
  • Check if there are any event listeners or handlers that may be interfering with the save operation when the user navigates away from the session.
  • Investigate the data storage mechanism used by Claude Code to store session names and ensure that it is correctly updating the custom name.
  • Test if the issue persists when using the standard VS Code extension, to determine if the problem is specific to Antigravity or a more general issue.

Example

No specific code example can be provided without more information on the internal implementation of Claude Code.

Notes

The issue may be related to the way Antigravity handles session data or the integration with VS Code. Further investigation is needed to determine the root cause.

Recommendation

Apply a workaround to ensure that the custom session name is persisted, such as manually saving the session after renaming, until a more permanent fix can be implemented. This is because the issue appears to be related to the saving mechanism, and a workaround can help mitigate the problem until the underlying cause is addressed.

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…

FAQ

Expected behavior

The custom session name should persist after pressing Enter, even when navigating between sessions or restarting the editor.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING