[BUG] Irrecoverable Sessions if Toolcall canceled before completion

Resolved 💬 3 comments Opened Jun 13, 2025 by zazer0 Closed Jul 2, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: v1.0.22
  • Operating System: Ubuntu 24.04.2 LTS + MacOS
  • Terminal: Wezterm, Terminal.

Bug Description

  • If a Toolcall is interrupted by user before finishing, the session becomes corrupted and progress is irrecoverable.
  • This was incorrectly marked as resolved previously (but the issue still exists, per screenshot).

Steps to Reproduce

  1. Start a Claude Code session, initiate tool call action (e.g, delegate subtask).
  2. Type CTRL+C before it completes.
  3. Observe that any following input will result in a tool call error; the session is now unusable and not possible to recover.

Expected Behavior

  • Session will handle tool call interruption without becoming corrupted.

Actual Behavior

  • Session becomes irrecoverable after interrupting a Task tool call (despite it exactly matching the expected workflow of interrupting a normal message).

Additional Context

  • This was supposedly fixed in #473 - but per attached screenshot, is not actually addressed.
  • The suggested "esc, then pick a previous message" does NOT work - it reverts all progress made.
  • Since progress made was 3x 270k tokens - losing this is pretty hard to accept as a paid feature.

Screenshot:

<img width="1198" alt="Image" src="https://github.com/user-attachments/assets/cf238179-ceb6-4219-9e44-5f08d0308c0d" />

View original on GitHub ↗

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