[BUG] Session titles show raw XML tags after using slash commands
Resolved 💬 3 comments Opened Feb 4, 2026 by dhruvicon Closed Feb 7, 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 using slash commands like /clear or /plugin, the session title in the /resume picker shows raw XML markup instead of a readable title:
<command-name>/clear</command-name> <command-message>clear</command-message> <command-args></command-args>
What Should Happen?
Session should have a readable title (or show the previous message before the command)
Error Messages/Logs
Steps to Reproduce
Start a Claude Code session
Run /clear or any other "/" slash command
Exit the session
Run claude
Call /resume command
Observe the session title shows raw XML tags
Claude Model
None
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
macOS
Terminal/Shell
iTerm2
Additional Information
<img width="893" height="447" alt="Image" src="https://github.com/user-attachments/assets/5f677f85-ed75-4b5b-8d2f-cd84d1f16abe" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗