claude-code - 💡(How to fix) Fix Rewind freezes terminal completely on macOS arm64 — must force-quit (v2.1.119) [6 comments, 6 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#53804Fetched 2026-04-28 06:46:55
View on GitHub
Comments
6
Participants
6
Timeline
15
Reactions
4
Author
Timeline (top)
commented ×6labeled ×4cross-referenced ×3subscribed ×2

Triggering rewind — either via the double-Esc shortcut or the /rewind slash command — causes the entire terminal to become unresponsive. Keyboard input is ignored, Ctrl+C does not interrupt, and the only recovery is force-quitting the terminal application. No error message is displayed before or during the freeze.

Error Message

Triggering rewind — either via the double-Esc shortcut or the /rewind slash command — causes the entire terminal to become unresponsive. Keyboard input is ignored, Ctrl+C does not interrupt, and the only recovery is force-quitting the terminal application. No error message is displayed before or during the freeze.

Root Cause

This report is filed because rewind is a flagship feature that is currently 100% unusable for this configuration, and #31976 was closed without a fix.

RAW_BUFFERClick to expand / collapse

Summary

Triggering rewind — either via the double-Esc shortcut or the /rewind slash command — causes the entire terminal to become unresponsive. Keyboard input is ignored, Ctrl+C does not interrupt, and the only recovery is force-quitting the terminal application. No error message is displayed before or during the freeze.

Environment (verified)

  • Claude Code: 2.1.119 (native Mach-O 64-bit arm64 build, installed via claude.ai/install.sh)
  • macOS: 26.3.1 (build 25D771280a)
  • Hardware: Apple Silicon (arm64)
  • Terminal: Ghostty 1.3.1
  • TERM: xterm-256color

Steps to reproduce

  1. Launch claude in any project directory.
  2. Send any prompt and receive a response (so there is at least one turn to rewind).
  3. Either press Esc twice, or type /rewind and submit.
  4. Terminal freezes immediately.

Expected

Rewind UI opens and lets the user select a previous turn.

Actual

  • Terminal stops responding to all input.
  • Ctrl+C, Ctrl+D, typing — nothing works.
  • Only recovery: kill the terminal window/process.
  • No stderr output, no log entry, no spinner — just silent freeze.

Scope

  • Reproduces on every project, including a brand-new session with a 72KB .jsonl (so session size is not the cause).
  • Reproduces immediately after a clean reinstall of Claude Code (binary wiped from ~/.local/share/claude/versions/ and reinstalled via the official claude.ai/install.sh). Reinstall did not change behavior.
  • Has persisted across multiple updates over the past month+.

Related closed/open issues

  • #31976 (closed "not planned") — rewind soft-lock
  • #4805 — Esc key terminal freeze (P0)
  • #4851 — rewind lag
  • #9803 — double-Esc not triggering on M1

This report is filed because rewind is a flagship feature that is currently 100% unusable for this configuration, and #31976 was closed without a fix.

Not validated

  • Exact freeze duration (user did not wait — terminal was killed).
  • Whether earlier Claude Code versions exhibited the same behavior on this exact macOS/Ghostty combo.

extent analysis

TL;DR

The issue can be potentially resolved by investigating and addressing the conflict between the Esc key shortcut and the terminal's input handling, possibly by modifying the shortcut or the terminal settings.

Guidance

  • Review the terminal settings in Ghostty 1.3.1 to see if there are any custom key bindings that might be interfering with the Esc key shortcut used by Claude Code.
  • Investigate the Claude Code configuration to determine if the rewind feature can be triggered using an alternative method, such as a different keyboard shortcut or a menu option.
  • Check if the issue persists when using a different terminal emulator, to isolate the problem to either Claude Code or Ghostty.
  • Consider reopening or referencing the related issues (#31976, #4805, #4851, #9803) to gather more information and potential solutions.

Example

No code snippet is provided as the issue seems to be related to the interaction between the terminal and the Claude Code application, rather than a specific code snippet.

Notes

The issue seems to be specific to the combination of Claude Code 2.1.119, Ghostty 1.3.1, and macOS 26.3.1 on Apple Silicon hardware. The exact cause of the freeze is unknown, and further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Try using an alternative method to trigger the rewind feature, such as a different keyboard shortcut or a menu option, to see if the issue is specific to the Esc key shortcut.

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

claude-code - 💡(How to fix) Fix Rewind freezes terminal completely on macOS arm64 — must force-quit (v2.1.119) [6 comments, 6 participants]