claude-code - 💡(How to fix) Fix [BUG] /memory opens external editor but hangs Claude Code; Ctrl+C does not exit

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report
  • I am using the latest version of Claude Code

What's Wrong?

Running /memory and selecting an entry opens the corresponding .md file in my external editor as expected, but Claude Code becomes hung afterward. The TUI is unresponsive to all input — Enter, typing, and slash commands do nothing. Even Ctrl+C does not exit Claude Code; I have to kill the process from another shell (or close the terminal tab) to recover.

This is distinct from #57817 (which is about Enter being unresponsive in the /memory selection menu and producing escape sequences on Linux/gnome-terminal). In my case the menu works, the editor opens, but Claude Code never recovers control after the editor closes/while it's open.

What Should Happen?

After the external editor closes, Claude Code should resume its TUI and accept input normally. At minimum, Ctrl+C should always be able to exit Claude Code.

Steps to Reproduce

  1. Launch claude in Ghostty on macOS.
  2. Run /memory.
  3. Select a memory file to edit — Claude Code launches the configured external editor with the .md file.
  4. Edit and close the editor (or attempt to interact with Claude Code while it's open).
  5. Claude Code's TUI is hung — no keystrokes are accepted, including Ctrl+C. The process must be killed externally.

Is this a regression?

Yes, this worked in a previous version.

Last Working Version

Not sure of the exact version.

Claude Code Version

2.1.139 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other (Ghostty and cmux)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING