[Bug] CLI Unresponsive After Command Cancellation

Resolved 💬 3 comments Opened Oct 4, 2025 by lackita Closed Oct 7, 2025

Bug Description
I cancelled a command and it got stuck unable to do anything else

Environment Info

  • Platform: linux
  • Terminal: emacs
  • Version: 2.0.5
  • Feedback ID:

Errors

[{"error":"AxiosError: Request failed with status code 403\n    at fN (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:715:1077)\n    at Unzip.z0 (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:716:9955)\n    at Unzip.emit (node:events:530:35)\n    at Unzip.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1698:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at vQ1.request (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:718:2088)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async YWA (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:891:25807)","timestamp":"2025-10-04T00:57:13.288Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.97: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01FbYAPvmF2HhjB9rcmCqmfh. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CTmFS5cHrF6EWDyGPhcWp\"}\n    at B4.generate (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:895:18688)\n    at yP.makeStatusError (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1034:2131)\n    at yP.makeRequest (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1034:5344)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async E2B.dG1.model (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:39804)\n    at async dG1 (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:27733)\n    at async E2B (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:39958)\n    at async file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:34180\n    at async ZH0 (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:9568)\n    at async r11 (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:34150)","timestamp":"2025-10-04T00:57:17.139Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.97: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01FbYAPvmF2HhjB9rcmCqmfh. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CTmFU8XTtyta5CYUEVfho\"}\n    at B4.generate (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:895:18688)\n    at yP.makeStatusError (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1034:2131)\n    at yP.makeRequest (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1034:5344)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async E2B.dG1.model (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:39804)\n    at async dG1 (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:27733)\n    at async E2B (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:39958)\n    at async file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:34180\n    at async ZH0 (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:9568)\n    at async r11 (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:34150)","timestamp":"2025-10-04T00:57:44.981Z"},{"error":"Error: API Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.97: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01FbYAPvmF2HhjB9rcmCqmfh. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CTmFU8XTtyta5CYUEVfho\"}\n    at Ov1 (file:///home/lackita/.asdf/installs/nodejs/22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2149:1443)\n    at process.pr

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗