claude-code - 💡(How to fix) Fix Sessions bar: renaming a session via pencil icon reverts immediately on blur/Enter [1 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#52927Fetched 2026-04-25 06:17:00
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×5

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 Sessions bar (left sidebar listing previous sessions), each session title has a pencil/edit icon. Clicking it opens an inline text input that accepts typing, but the new title is never committed:

Clicking away (blur) reverts to the previous title. Pressing Enter also reverts to the previous title.

What Should Happen?

The new title is saved and displayed for that session.

Actual behavior The input immediately reverts to the previous title. The rename never persists — not across sessions, not even within the same session view.

Additional context This appears distinct from #11808 (rename not persisting across restart) and #50376 (duplicate entries in web sidebar after rename) — in this case the rename never takes effect at all.

Error Messages/Logs

Steps to Reproduce

Open the Claude Code VSCode extension. In the Sessions bar, hover a previous session to reveal the edit/pencil icon. Click the pencil icon — an inline input appears with the current title. Type a new title. Press Enter or click outside the input.

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.101

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can be resolved by investigating and fixing the event handling for the inline text input in the Sessions bar, specifically the blur and Enter key press events.

Guidance

  • Verify that the event listeners for the blur and Enter key press events are correctly attached to the inline text input and are triggering the intended save functionality.
  • Check the code for any preventDefault() or stopPropagation() calls that might be interfering with the default form submission behavior.
  • Inspect the network requests or API calls made when the Enter key is pressed or the input is blurred to ensure that the new title is being sent to the server for persistence.
  • Review the code for any potential issues with scope, context, or variable binding that might be causing the new title to be lost or reverted.

Example

No code snippet can be provided without more context, but the fix might involve modifying the event handler for the inline text input to correctly save the new title, e.g., by calling a saveTitle() function when the Enter key is pressed or the input is blurred.

Notes

The issue seems to be specific to the Sessions bar in the Claude Code VSCode extension, and the fact that it never worked suggests a potential implementation flaw rather than a regression.

Recommendation

Apply workaround: Modify the event handling for the inline text input to correctly save the new title, as the issue appears to be related to the client-side implementation rather than a server-side API issue.

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 Sessions bar: renaming a session via pencil icon reverts immediately on blur/Enter [1 participants]