Bug: /memory UI shows garbled ANSI escape characters when selecting option
Resolved 💬 3 comments Opened Mar 2, 2026 by east-shine Closed Mar 2, 2026
Description
When using the /memory command and selecting any option (1, 2, or 3), garbled ANSI escape characters (^[[0) appear at the bottom of the screen. After this, the UI becomes unresponsive and cannot be navigated back.
Steps to Reproduce
- Run
/memoryin Claude Code - Select any option (1. User memory, 2. Project memory, or 3. Open auto-memory folder)
- Press Enter to confirm
Expected Behavior
The selected memory option should open normally without rendering issues.
Actual Behavior
Garbled characters (^[[0) appear below the menu regardless of which option is selected, and the UI becomes stuck — cannot go back or interact further.
Screenshot
The escape sequence ^[[0 is visible at the bottom after selecting any option:
Enter to confirm · Esc to cancel
^[[0
Environment
- Claude Code version: 2.1.63
- macOS version: 26.2
- Terminals tested: Ghostty, iTerm2 (both reproduce the issue)
- Shell: zsh
Note
- This is not terminal-specific — the bug reproduces across multiple terminal emulators (Ghostty, iTerm2).
- All three menu options trigger the same issue, not just option 1.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗