Warp icon indicating copy to clipboard operation
Warp copied to clipboard

400 Bad Request `tool_use` ids were found without `tool_result`

Open z1968579 opened this issue 2 months ago • 7 comments

Pre-submit Checks

Describe the bug

I saw that another post saying it was fixed but I still am getting and error Error message:

I'm sorry, I couldn't complete that request.

Response stream finished unexpectedly with internal error: Anthropic API error: POST "https://api.anthropic.com/v1/messages": 400 Bad Request (Request-ID: req_011CUB1SaJfBGu8PU7iU7cim) {"type":"error","error":{"type":"invalid_request_error","message":"messages.38: tool_use ids were found without tool_result blocks immediately after: toolu_01VA5zfcgVHd99X31RkvT2t4. Each tool_use block must have a corresponding tool_result block in the next message."},"request_id":"req_011CUB1SaJfBGu8PU7iU7cim"}

{"conversation_id":"b8a9cf7c-3ceb-4d55-9481-dbe9ffa0cce0"}

To reproduce

Not sure, happened mid task completion and after i pressed refine on a task

Expected behavior

No response

Screenshots, videos, and logs

Image

Operating system (OS)

Windows

Operating system and version

Windows 11 Home 24H2

Shell Version

GNU bash, version 5.2.37(1)-release (x86_64-pc-msys)

Current Warp version

v0.2025.10.08.08.12.stable_05

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

z1968579 avatar Oct 16 '25 14:10 z1968579

Thanks for reporting, we're looking into the issue. If you ever hit this case again, please let us know as a consistent repro would be really helpful.

danielpeng2 avatar Oct 17 '25 00:10 danielpeng2

{"conversation_id":"cfa48cc5-bb4f-48dc-a266-6a9b2442d549"}

I also am experiencing this issue and have this error:

I'm sorry, I couldn't complete that request.

Response stream finished unexpectedly with internal error: Anthropic API error: POST "https://api.anthropic.com/v1/messages": 400 Bad Request (Request-ID: req_011CUDG8vqSKV72NuBouSGbN) {"type":"error","error":{"type":"invalid_request_error","message":"messages.22: tool_use ids were found without tool_result blocks immediately after: toolu_01KuEHCQfcUgJfmPr9vQ1LHN. Each tool_use block must have a corresponding tool_result block in the next message."},"request_id":"req_011CUDG8vqSKV72NuBouSGbN"}

tjonestj3 avatar Oct 17 '25 18:10 tjonestj3

Following up here, I was able to resolve this issue by signing out of my warp account and back in lol. I was immediately able to run the agent models again.

tjonestj3 avatar Oct 17 '25 21:10 tjonestj3

I'm sorry, I couldn't complete that request. Response stream finished unexpectedly with internal error: OpenAI API error: POST "https://api.openai.com/v1/responses": 400 Bad Request { "message": "No tool output found for function call toolu_01B1bZ4qShmE79p8R5Xhm9q6.", "type": "invalid_request_error", "param": "input", "code": null }

pchawandi avatar Oct 18 '25 08:10 pchawandi

Same I logged out and logged in.. Unfortunately lost all tabs I had created.. not great though

pchawandi avatar Oct 18 '25 08:10 pchawandi

Same error here. It seems to happen when using Anthropic agent models:

Response stream finished unexpectedly with internal error: Anthropic API error: POST "https://api.anthropic.com/v1/messages": 400 Bad Request (Request-ID: req_011CUMyYQ21EXd6KVU8vqikb) {"type":"error","error":{"type":"invalid_request_error","message":"messages.8: tool_use ids were found without tool_result blocks immediately after: toolu_01876MMEqG2G1gZVoHD7s9Yt. Each tool_use block must have a corresponding tool_result block in the next message."},"request_id":"req_011CUMyYQ21EXd6KVU8vqikb"}

{"conversation_id":"17e0950b-0723-4901-b25c-2d347f154c88"}

javier-sanz-salesa avatar Oct 22 '25 09:10 javier-sanz-salesa

Logged out and back in. Warp started to work again but shortly after I received the same problem. {"conversation_id":"5ac78523-42da-4da9-a7cc-5fffb83c8d5d"}

EDIT Logged out and back in again seemed to have resolved the issue but same behaviour observed the following day. Occasionally works for a conversation but fails for a new one.

OS: Ubuntu 24.04.3 LTS Warp: v0.2025.12.03.08.12.stable_03 Related to #8163

Image

balter-io avatar Dec 08 '25 00:12 balter-io