Skip to content

Anthropic error: messages.44.content.1: unexpected tool_use_id found in tool_result blocks #4482

@lambertjosh

Description

@lambertjosh

Plugin Type

VSCode Extension

App Version

v4.137.0

Description

I had an Orchestrator session running which then moved into Code mode on a subtask. I was Opus 4.5. It blocked overnight on a command approval and after this morning I approved and it is now genering a tool use error:

Anthropic error: messages.44.content.1: unexpected `tool_use_id` found in `tool_result` blocks: toolu_01HGoGuhWTEyMyxCGPsVbxsg. Each `tool_result` block must have a corresponding `tool_use` block in the previous message.

I've retried twice now and gotten the same error.

Reproduction steps

I'm not clear if this is exact steps but what I did:

  1. Start an orchestrator session
  2. Let subtask wait for approval for some time (i.e. on a command execution prompt)
  3. Approve some time later (I waited like ~18hrs)
  4. See a potential failure.

I don't know if I updated the extension in between.

Provider

Kilo Code

Model

Claude Opus 4.5

System Information

Mac Tahoe 26.1
Macbook Air M4 - 24GB of RAM

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Prioritized

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions