Interrupt Handling Failure: Ctrl-C Creates Newline and Blocks Input Recovery

Resolved 💬 3 comments Opened Apr 29, 2025 by adamtaylor13 Closed May 5, 2025

Bug Description
Hitting Ctrl-C to interrupt Claude no longer works. Instead, it creates a newline below the entire prompt and doesn't give any way to recover. The only way to proceed is to Ctrl-C again, which ends the entire session losing all your current progress/context.

Environment Info

  • Platform: macos
  • Terminal: iTerm.app
  • Version: 0.2.90
  • Feedback ID: 1cdca4bc-0680-4555-9c85-e077847d9c69

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Unexpected value(s) `` for the `anthropic-beta` header. Please consult our documentation at docs.anthropic.com or try again without the header.\"}}\n    at W8.generate (file:///Users/adamtaylor/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:650:26673)\n    at i8.makeStatusError (file:///Users/adamtaylor/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:654:7240)\n    at i8.makeRequest (file:///Users/adamtaylor/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:654:8185)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async tn.maxRetries (file:///Users/adamtaylor/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1691:6309)\n    at async tn (file:///Users/adamtaylor/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1691:4969)\n    at async xV6 (file:///Users/adamtaylor/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1691:6241)\n    at async file:///Users/adamtaylor/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:3401","timestamp":"2025-04-29T18:47:32.945Z"}]

View original on GitHub ↗

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