Skip to content

Missing Tool Result Block for Tool Use ID toolu_01C8jdoH7EFeLasm48ru4qhi #4401

@YasserLoukniti

Description

@YasserLoukniti

Bug Description
j'ai perdu la conversation a cause de cette erreur : API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.211: tool_use ids were found without tool_result blocks immediately after: toolu_01C8jdoH7EFeLasm48ru4qhi. Each tool_use block
must have a corresponding tool_result block in the next message."}}

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 1.0.60
  • Feedback ID: ae1874b4-b8d0-456c-a338-d627b9170e12

Errors

[{"error":"Error: Command failed: tasklist | findstr /I \"Code.exe Cursor.exe Windsurf.exe idea64.exe pycharm64.exe webstorm64.exe phpstorm64.exe rubymine64.exe clion64.exe goland64.exe rider64.exe datagrip64.exe appcode.exe dataspell64.exe aqua64.exe gateway64.exe fleet.exe studio64.exe\"\nFINDSTR�: Impossible d�ouvrir Code.exe Cursor.exe Windsurf.exe idea64.exe pycharm64.exe webstorm64.exe phpstorm64.exe rubymine64.exe clion64.exe goland64.exe rider64.exe datagrip64.exe appcode.exe dataspell64.exe aqua64.exe gateway64.exe fleet.exe studio64.exe\r\n\n    at checkExecSyncError (node:child_process:890:11)\n    at execSync (node:child_process:962:15)\n    at i7 (file:///C:/Users/yass_/AppData/Roaming/nvm/v20.10.0/node_modules/@anthropic-ai/claude-code/cli.js:865:5196)\n    at Mt (file:///C:/Users/yass_/AppData/Roaming/nvm/v20.10.0/node_modules/@anthropic-ai/claude-code/cli.js:1346:1937)\n    at file:///C:/Users/yass_/AppData/Roaming/nvm/v20.10.0/node_modules/@anthropic-ai/claude-code/cli.js:1876:7966\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async file:///C:/Users/yass_/AppData/Roaming/nvm/v20.10.0/node_modules/@anthropic-ai/claude-code/cli.js:1877:1485\n    at async Promise.all (index 12)\n    at async Bw0 (file:///C:/Users/yass_/AppData/Roaming/nvm/v20.10.0/node_modules/@anthropic-ai/claude-code/cli.js:1877:1444)","timestamp":"2025-07-25T13:39:20.828Z"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiarea:coreautocloseIssue will be closed automaticallybugSomething isn't workingduplicateThis issue or pull request already existsplatform:windowsIssue specifically occurs on Windows

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions