Skip to content

[BUG] API Error 400 with claude --continue #3149

@SolsticeSpectrum

Description

@SolsticeSpectrum

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other:
  • Claude CLI version: 1.0.44 (Claude Code)
  • Operating System: Arch Linux
  • Terminal: kitty

Bug Description

In one project when I use claude --continue it throws

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

it does not happen in other projects

Steps to Reproduce

I do not know how to reproduce this bug

Expected Behavior

It should answer with proper response

Actual Behavior

As described above

Additional Context

I have submitted a feedback using /bug with id 1421edcf-5be3-4dcc-8723-6259a5ab1e42

Metadata

Metadata

Assignees

No one assigned

    Labels

    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