[BUG] /resume picker shows raw <command-name> XML tags as session titles

Resolved 💬 3 comments Opened Feb 4, 2026 by idrnet 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?

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

  1. Start a new Claude Code session
  2. Type /clear as the first command
  3. Continue working, then exit the session
  4. Run /resume
  5. The session list shows the raw markup as the title:

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

  1. Same happens for sessions started with /rename or /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_

View original on GitHub ↗

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