claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Irrecoverable Sessions if Toolcall canceled before completion

Open zazer0 opened this issue 6 months ago • 1 comments

Environment

  • Platform (select one):
    • [x] Anthropic API
    • [ ] AWS Bedrock
    • [ ] Google Vertex AI
    • [ ] Other:
  • 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:

Image

zazer0 avatar Jun 13 '25 02:06 zazer0

Hi there, is this still happening for folks? Could you provide more precise repro steps?

A feedback report submitted with /bug would be really helpful for tracking it down.

igorkofman avatar Jun 25 '25 21:06 igorkofman

Seems to have been resolved. Thanks for the fix!

zazer0 avatar Jul 02 '25 12:07 zazer0

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 10 '25 14:08 github-actions[bot]