[BUG] Claude Code process locks up after /memory opens file in editor

Resolved 💬 3 comments Opened Apr 8, 2026 by dwhelan Closed Apr 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?

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

  1. Open Claude Code (claude) in a terminal
  2. Type /memory and press Enter
  3. Press 1 to select "User memory" — the file opens in your editor (VS Code)
  4. Return to the Claude Code terminal
  5. 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

  1. Project memory Saved in ./CLAUDE.md
  2. 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

View original on GitHub ↗

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