-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Problem (one or two sentences)
When using the Anthropic provider with the experimental "Parallel tool calls" feature enabled, a bug may occur after the number of conversation turns reaches a certain threshold (approximately 20-30 turns).
The API call fails and returns a 400 invalid_request_error.
Error Response:
{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "messages.70: tool_use ids were found without tool_result blocks immediately after: toolu_01FZKGcgUxLCjjJqsvMMFyHH. Each tool_use block must have a corresponding tool_result block in the next message."
},
"request_id": "req_011CVdnBbidP19zWhjmu5Rj5"
}
Context (who is affected and when)
When using the Anthropic provider with the experimental "Parallel tool calls" feature enabled, a bug may occur after the number of conversation turns reaches a certain threshold (approximately 20-30 turns).
Reproduction steps
0.use Anthropic provider
1.enable tool call native
2.enable experimental "Parallel tool calls" feature
3.approximately 20-30 turns
Expected result
Engage in a normal conversation
Actual result
400 error
Variations tried (optional)
No response
App Version
3.34.8
API Provider (optional)
Anthropic
Model Used (optional)
No response
Roo Code Task Links (optional)
No response
Relevant logs or errors (optional)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status