[BUG] Claude Code process locks up after /memory opens file in editor
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?
Using /memory and selecting an item (e.g. option 1 — User memory) launches the file in the configured editor. When the editor takes focus and you
return to the Claude Code terminal, the process is locked up — no keyboard input is accepted and the session must be force-closed.
What Should Happen?
Claude Code remains responsive after launching the editor. The /memory TUI is still visible and dismissible with Esc, or the session returns to the
prompt.
Error Messages/Logs
Steps to Reproduce
- Open Claude Code (claude) in a terminal
- Type /memory and press Enter
- Press 1 to select "User memory" — the file opens in your editor (VS Code)
- Return to the Claude Code terminal
- Observe: terminal is locked — no keyboard input is processed; Esc, Ctrl+C, and other keys have no effect
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.84 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
❯ /memory
────────────────────────────────────────────────────────────────────────────────
Memory
Auto-memory: on
Auto-dream: off · never
❯ 1. User memory Saved in ~/.claude/CLAUDE.md
- Project memory Saved in ./CLAUDE.md
- Open auto-memory folder
Learn more: https://code.claude.com/docs/en/memory
Enter to confirm · Esc to cancel
^[[O^[[I^[^[^[^[^[^[^[^[[O^[[I^[[O^[[I^[[O^[[I
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗