[BUG] Claude CLI won't preserve history of `/` commands
Resolved 💬 3 comments Opened Jun 12, 2025 by AlexanderCiridae Closed Jan 6, 2026
Environment
- Claude CLI version: 1.0.21 (Claude Code)
- Operating System: macOS 14.6.1
- Terminal: Alacritty (and iTerm)
Bug Description
Claude CLI won't preserve the history of / commands (eg. /mcp), it clears it to "(no content)" which makes it impossible to go back and share chat history with another claude cli session for debugging purposes, for example.
Could be solved by either
- Session logging to file
- Option to prevent UI clearing
- Better history preservation
or something.
Steps to Reproduce
- Run
/command (eg./mcp) - Hit ESC to continue
Expected Behavior
What the command showed (eg. list of mcp servers at that point in the chat) stays in history.
Actual Behavior
Output of the command is cleared and replaced with "(no content)"
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗