Skip to content

[BUG] VS Code extension: session rename reverts to auto-generated name from first prompt #52352

Description

@mb7272

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions