Skip to content

[BUG] Critical: Tool call pair maintenance. #3637

@junaid1460

Description

@junaid1460

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other: ( max plan )
  • Claude CLI version: 1.0.53 (Claude Code)
  • Operating System: Macos 15.0
  • Terminal: Vscode

Bug Description

Tool call pairs are not maintained

Steps to Reproduce

  1. probably sending message at the right moment when tool executing

Expected Behavior

for it to work, not add directly maybe ? Maybe store the messages in local disk for me to fix ?

Actual Behavior

it's not maintaining the pair

Additional Context

  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_re
    quest_error","message":"messages.237: `tool_use` ids were 
    found without `tool_result` blocks immediately after: 
    toolu_013qojPNNYqGGL6C8CQHAXy3. Each `tool_use` block must
     have a corresponding `tool_result` block in the next 
    message."}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corearea:toolsautocloseIssue will be closed automaticallybugSomething isn't workingplatform:macosIssue specifically occurs on macOS

    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