Session title gets overwritten by the last user message (e.g. "commit"), losing the descriptive name

Open 💬 0 comments Opened Jul 9, 2026 by devqmr

Environment

  • Claude Code version: 2.1.204
  • Client: VS Code extension (native), also visible in the session picker
  • OS: macOS (Darwin 25.5.0)

Description

Session titles in the sessions list are auto-regenerated as the conversation continues. When the last user message is a short command-like prompt such as commit, the session's previously descriptive title (e.g. "Detect already-sent videos in duplicate finder") is replaced with just commit.

Over time this leaves the session list full of duplicate, meaningless titles — I currently have three separate sessions all titled commit, and I can no longer tell which session was about which task.

Steps to reproduce

  1. Start a session with a substantive first prompt — the session gets a descriptive auto-generated title.
  2. Work in the session for a while.
  3. End the session with a short message like commit.
  4. Open the sessions list (VS Code extension sidebar or claude --resume).

Expected behavior

The session keeps its descriptive title. The title should not be replaced by a later trivial message — either keep the original/summary title, or at minimum don't downgrade a descriptive title to a 1-word prompt.

Actual behavior

The session is renamed to the last user message (commit), losing the descriptive name.

Workaround

Manually running /rename <name> pins the name, but this must be remembered per session.

Related

#35810 ("Allow disabling automatic conversation title renaming") was closed as not planned — but even without a toggle, replacing a descriptive title with the user's last one-word message looks like a title-quality bug rather than intended behavior.

View original on GitHub ↗