claude-code - 💡(How to fix) Fix [BUG] Claude Code process locks up after /memory opens file in editor [2 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#45434Fetched 2026-04-09 08:05:31
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2closed ×1

Error Message

Error Messages/Logs

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 (please file separate reports for different bugs)
  • 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 2. Project memory Saved in ./CLAUDE.md 3. 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

extent analysis

TL;DR

The issue can be mitigated by modifying the way Claude Code handles external editor launches, potentially by running the editor in a separate process or using a different launch method.

Guidance

  • Investigate the launch method used by Claude Code to open the editor, as it may be causing the terminal to lock up.
  • Consider using a different editor or launch configuration to see if the issue persists.
  • Look into running the editor in a separate process or using a tool like open or xdg-open to launch the editor, which might help prevent the terminal from locking up.
  • Review the documentation for Claude Code and the Anthropics API to see if there are any known issues or workarounds related to editor integration.

Notes

The issue may be related to the specific editor or launch configuration used, and further investigation is needed to determine the root cause.

Recommendation

Apply workaround: The issue can be mitigated by modifying the launch method or using a different editor, and applying a workaround is a safer approach until the root cause is determined.

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