claude-code
claude-code copied to clipboard
[BUG] Irrecoverable Sessions if Toolcall canceled before completion
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
- Start a Claude Code session, initiate tool call action (e.g, delegate subtask).
- Type CTRL+C before it completes.
- 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:
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.
Seems to have been resolved. Thanks for the fix!
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.