VS Code extension: "Rename Session Tab" silently does nothing on a new session before the first message

Open Beginner friendly
#111,416 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript, vscode
Domain
tooling

Research direction

Start from the extension's package.json contributes.commands entry for "Claude Code: Rename Session Tab" to find the registered command id, then follow it to the TypeScript handler in the VS Code extension source. In that handler, look for the guard tied to session title/message state that makes the rename a no-op before the first message, and decide whether to allow an early rename or surface an explanatory message. Done means the command no longer fails silently and a test covers the pre-first-message case. The payload names no files, so expect to search the repo first.

Written by the indexing model from the issue text.

Description

area:vscode bug has repro platform:vscode platform:windows

Environment: Claude Code VS Code extension 2.1.329, VS Code 1.145.3, Windows 11 Pro

Steps:

  1. Open a new Claude Code session tab.
  2. Before sending any message, run Ctrl+Shift+P > "Claude Code: Rename Session Tab".

Expected: the tab is renamed, or there is a message explaining that renaming needs a first message.
Actual: nothing happens and no error is shown.

Workaround: send a first message, wait for the automatic title, then the rename works.

Dominant language
TypeScript
Stars
156k
Forks
25k
Avg merge
16h 19m
Merged PRs (30d)
5

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from anthropics/claude-code

All issues in anthropics/claude-code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.