[BUG] /resume picker shows raw <command-name> XML tags as session titles
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?
The /resume session picker displays raw internal XML/skill markup as session titles instead of clean names.
Sessions where the first interaction was a slash command (/clear, /rename, /resume) show titles like:
/clear clear
This makes the session list unreadable. Multiple sessions are affected — any session whose first user message was a slash command
shows this raw markup.
ScreenShot:
!Image
What Should Happen?
Session titles should show a clean, human-readable name — either the first actual user message, the renamed title, or a fallback
like the date/time. Internal skill/command XML markup should never leak into the UI.
Error Messages/Logs
No error — purely a display/cosmetic bug in the /resume picker.
Steps to Reproduce
- Start a new Claude Code session
- Type
/clearas the first command - Continue working, then exit the session
- Run
/resume - The session list shows the raw markup as the title:
<command-name>/clear</command-name> <command-message>clear</command-message> <command-args></command-args>
- Same happens for sessions started with
/renameor/resume
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.31
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗