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:
- Type a prompt and submit it.
- Claude Code starts working on it (turn in progress).
- 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