anthropics / anthropics/claude-code

[Bug] Terminal becomes unresponsive after pressing ESC to stop execution

Open
#81,344 0 comments 0 reactions 0 assignees View on GitHub
area:tui
Dominant language
Python
Stars
145k
Forks
23.1k
PR merge metrics
PR metrics pending

Description

**Bug Description**
when i press ESC to stop, then will not allow me to write anything, it stop writing on terminial

**Environment Info**
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.1.220
- Feedback ID: 88bc015e-7950-4de6-ac8e-fd4a21cc1798

**Errors**
```json
[{"error":"TelemetrySafeError: VirtualMessageList: itemKeys/messages length desync (keys=130 messages=129 range=[117,130))\n at YVb (/$bunfs/root/src/entrypoints/cli.js:21731:8188)\n at Lhf (/$bunfs/root/src/entrypoints/cli.js:21731:1103)\n at no (/$bunfs/root/src/entrypoints/cli.js:2019:21369)\n at Ov (/$bunfs/root/src/entrypoints/cli.js:2019:40466)\n at j4 (/$bunfs/root/src/entrypoints/cli.js:2019:51400)\n at Hne (/$bunfs/root/src/entrypoints/cli.js:2019:89060)\n at BLe (/$bunfs/root/src/entrypoints/cli.js:2019:88007)\n at jge (/$bunfs/root/src/entrypoints/cli.js:2019:87827)\n at nQ (/$bunfs/root/src/entrypoints/cli.js:2019:84091)\n at Dt (/$bunfs/root/src/entrypoints/cli.js:2019:6668)","timestamp":"2026-07-26T10:47:22.465Z"}]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the ESC-to-stop behavior on darwin with Apple_Terminal, then start from the reported VirtualMessageList itemKeys/messages desync in the cli.js stack trace. Done means execution can be stopped and the terminal accepts input afterward, with the desync no longer occurring.

Written by the indexing model from the issue text.

Assessment

Tech stack
bun
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.