400 Bad Request `tool_use` ids were found without `tool_result`
Pre-submit Checks
- [x] I have searched Warp bugs and there are no duplicates
- [x] I have searched Warp known issues page and my issue is not there
- [x] I have an issue with AI and have included the debugging ID (Optional, but helps expedite the AI quality fix). Debugging ID instructions
- [x] I have technical issue and have included the logs (optional, but helps expedite the bug fix). Log instructions
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
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
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.
{"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"}
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.
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 }
Same I logged out and logged in.. Unfortunately lost all tabs I had created.. not great though
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_useids were found withouttool_resultblocks immediately after: toolu_01876MMEqG2G1gZVoHD7s9Yt. Eachtool_useblock must have a correspondingtool_resultblock in the next message."},"request_id":"req_011CUMyYQ21EXd6KVU8vqikb"}
{"conversation_id":"17e0950b-0723-4901-b25c-2d347f154c88"}
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