[BUG] "/memory command leaves terminal in broken state after exit (focus reporting + modifyOtherKeys not disabled)"
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?
I tried /memory to see how many tokens my CLAUDE.md file was taking. I selected option #1 Project memory. The terminal seemed close and I'm switched to the last window I used. But I could return to the iTerm terminal and if I typed anything I got the following characters. ^[[O^[[I^[[27;5;99~^[[27;5;99~^[[27;5;99~^[[27;5;99~^[[27;5;120~^[[27;5;120~^[[27;5;120~^[[27;5;99~^[[27;5;99~^[[O^[[I^[[O^[[Ireset
The same thing happens in the default terminal. showing ^[[O^[[I^[[O^[[Iory Checked in at ./CLAUDE.md
What Should Happen?
it should have shown me something relating to my Project memory.
Error Messages/Logs
Steps to Reproduce
run a new instance of claude code by typing claude in a terminal. once in claude code, enter /memory. select option 1.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.114
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
iTerm Build 3.6.9
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗