[BUG] Chat title gets overwritten after manually setting it via /rename

Resolved 💬 3 comments Opened Apr 17, 2026 by FireStarter69 Closed Apr 21, 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?

When I manually set a chat/session title using /rename, Claude Code later overwrites it with an auto-generated title. The manually chosen title does not persist — it gets replaced silently during the conversation.

The terminalTitleFromRename setting exists but only controls whether /rename updates the terminal tab title. It does not prevent the auto-generated title from overwriting a manually set title.

What Should Happen?

Once a user has manually renamed a session via /rename, that title should be treated as "pinned" and never be overwritten by automatic title generation. Auto-generated titles should only apply to sessions that have not been manually renamed.

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce

Start a new Claude Code session
Use /rename My Custom Title to set a title
Continue the conversation with different topics
Observe that the manually set title gets silently replaced by an auto-generated one

Claude Model

None

Is this a regression?

I don't know

Last Working Version

Claude Opus 4.6 (1M context)

Claude Code Version

Claude Code Version: 2.1.97

Platform

Other

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

Title: Chat title gets overwritten after manually setting it via /rename

What's Wrong?

When I manually set a chat/session title using /rename, Claude Code later overwrites it with an auto-generated title. The manually chosen title does not persist — it gets replaced silently during the conversation.

The terminalTitleFromRename setting exists but only controls whether /rename updates the terminal tab title. It does not prevent the auto-generated title from overwriting a manually set title.

What Should Happen?

Once a user has manually renamed a session via /rename, that title should be treated as "pinned" and never be overwritten by automatic title generation. Auto-generated titles should only apply to sessions that have not been manually renamed.

Steps to Reproduce

Start a new Claude Code session
Use /rename My Custom Title to set a title
Continue the conversation with different topics
Observe that the manually set title gets silently replaced by an auto-generated one
Claude Model: Claude Opus 4.6 (1M context)
Is this a regression? Unknown
Claude Code Version: 2.1.97
Platform: Anthropic (claude.ai/code)
OS: Windows 11 Pro 10.0.26200
Terminal: Bash (VSCode integrated termina

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗