Session auto-titler uses raw XML markup and overrides /rename

Resolved 💬 4 comments Opened Feb 4, 2026 by davidlinjiahao Closed Mar 6, 2026

Bug Description

Session auto-naming displays raw internal XML markup instead of generating human-readable titles. Sessions show names like:

<command-name>/clear</command-name> <command-message>clear</comman...
<command-name>/rename</command-name> <command-message>rename</comm...

Steps to Reproduce

  1. Start a new Claude Code session
  2. Use a slash command as the first interaction (e.g., /clear or /rename)
  3. Check the session list with claude --resume
  4. Session name shows raw XML tags instead of a clean title

Additional Issue

When manually renaming with /rename <name>, the auto-titler overrides the custom name and reverts it back to the raw XML markup. There is no config setting to disable auto session title generation.

Expected Behavior

  1. Session auto-titler should strip/parse internal XML tags before generating names
  2. Manual /rename should persist and not be overwritten by auto-titler
  3. Ideally, a config option to disable auto session title generation

Environment

  • macOS (Darwin 25.2.0)
  • Claude Code latest
  • Running 18+ concurrent sessions with CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1

🤖 Generated with Claude Code

View original on GitHub ↗

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