[BUG]

Resolved 💬 1 comment Opened May 13, 2026 by vladikpri-sketch Closed Jun 11, 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?

Version

anthropic.claude-code 2.1.140 (linux-x64)

Summary

When a Claude Code chat opens in an editor tab, right-clicking the tab → Rename sets
a custom title. VSCode persists that title across restart, but after reopening the
window the extension immediately renames the tab back to an auto-generated summary
of the last message in the chat.

Reproduction

  1. Open a Claude Code session as a full editor (not sidebar).
  2. Right-click the tab → Rename → set a custom title (e.g. "Payments refactor").
  3. Fully quit VSCode and reopen the workspace.
  4. Observe: the tab title is now the first ~25 chars of the last chat message,

not "Payments refactor".

Root cause (from reading extension.js / webview/index.js in 2.1.140)

The webview has a reactive effect on activeSession.summary that calls
renameTab(summary, ...). On webview deserialization after window restore, this
effect runs and posts a rename_tab request. The extension-side handler
(extension.js around the rename_tab branch in processRequest) unconditionally
assigns this.panelTab.title, clobbering the user-persisted title.

Expected

Either:
(a) Don't auto-rename a tab whose title has been manually changed by the user, or
(b) Expose a setting like claudeCode.autoRenameTabs (default true) and honor false.

Workaround

Patch the rename_tab handler to skip the title assignment when
panelTab.title doesn't equal the last auto-assigned title.

What Should Happen?

Expected

Either:
(a) Don't auto-rename a tab whose title has been manually changed by the user, or
(b) Expose a setting like claudeCode.autoRenameTabs (default true) and honor false.

Error Messages/Logs

Steps to Reproduce

Reproduction

  1. Open a Claude Code session as a full editor (not sidebar).
  2. Right-click the tab → Rename → set a custom title (e.g. "Payments refactor").
  3. Fully quit VSCode and reopen the workspace.
  4. Observe: the tab title is now the first ~25 chars of the last chat message,

not "Payments refactor".

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.140

Platform

AWS Bedrock

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗