Pressing Esc to interrupt a running turn sometimes discards the prompt text instead of just cancelling the turn

Status Open
Maintainer reply None cached
Activity 0 comments · opened Aug 25, 2026

Environment: Claude Code 2.1.243, CentOS Stream 9

Steps to reproduce:

  1. Type a prompt and submit it.
  2. Claude Code starts working on it (turn in progress).
  3. Press Esc to interrupt.

Expected: The in-flight turn is cancelled; the submitted prompt text remains available (e.g., back in the input box) so it can be reviewed, edited, or resubmitted.

Actual: Intermittently (not every time), the prompt text is gone entirely after interrupting -- not recoverable, requires retyping from scratch

View original on GitHub ↗