[BUG] /resume shows raw XML tags instead of readable session titles when session starts with slash command

Resolved 💬 3 comments Opened Feb 4, 2026 by pkosyakov Closed Feb 8, 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 a session begins with a slash command (/mcp, /clear, /plugin, etc.), the /resume session list displays raw internal XML markup as the session title instead of a human-readable name.

What Should Happen?

Session titles should display clean, parsed text — e.g., /mcp, /clear, or ideally the first meaningful user message in the session.

Error Messages/Logs

Raw XML tags are shown as session names:

  <command-name>/mcp</command-name> <command-message>mcp</command-message> <command-args></command-args>

Steps to Reproduce

Steps to Reproduce

  1. Start a new Claude Code session
  2. Use a slash command as the first message (e.g., /mcp or /clear)
  3. Continue the conversation with some messages
  4. Exit and run /resume
  5. Observe the session list — raw XML tags appear as session titles

Environment

  • Claude Code CLI
  • Windows 11
  • Claude Opus 4.5

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.31

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

<img width="1515" height="688" alt="Image" src="https://github.com/user-attachments/assets/bd82cc65-40dd-4838-8d05-f45e291852b3" />

View original on GitHub ↗

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