[Bug] Code review plugin returns 400 error before gh comment creation
Resolved 💬 3 comments Opened Dec 18, 2025 by RRaffay Closed Dec 22, 2025
Bug Description
I'm getting this odd error after running the code review plugin. Essentially, I wanted to analyze the findings before the gh comment was made but I keep getting the 400 error.
Environment Info
- Platform: darwin
- Terminal: cursor
- Version: 2.0.72
- Feedback ID: 5ada72cf-49f7-4ea6-9949-f2409af3762e
Errors
[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/ranaraffay/.local/share/claude/versions/2.0.72 (expected in multi-process scenarios)\n at TZR (/$bunfs/root/claude:2428:2165)\n at yYA (/$bunfs/root/claude:2428:1885)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-18T17:08:10.414Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.18.content.1: unexpected `tool_use_id` found in `tool_result` blocks: toolu_01WFxvwmeb1rvStBEjioxrCC. Each `tool_result` block must have a corresponding `tool_use` block in the previous message.\"},\"request_id\":\"req_011CWEXt2XsiGMq2qLyvobry\"}\n at generate (/$bunfs/root/claude:414:11098)\n at makeRequest (/$bunfs/root/claude:761:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-18T17:17:57.001Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.18.content.1: unexpected `tool_use_id` found in `tool_result` blocks: toolu_01WFxvwmeb1rvStBEjioxrCC. Each `tool_result` block must have a corresponding `tool_use` block in the previous message.\"},\"request_id\":\"req_011CWEXt4dtKUXVCNWeFb9MV\"}\n at generate (/$bunfs/root/claude:414:11098)\n at makeRequest (/$bunfs/root/claude:761:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-18T17:17:57.545Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.18.content.1: unexpected `tool_use_id` found in `tool_result` blocks: toolu_01WFxvwmeb1rvStBEjioxrCC. Each `tool_result` block must have a corresponding `tool_use` block in the previous message.\"},\"request_id\":\"req_011CWEXu2tyqPx31PJWse2FM\"}\n at generate (/$bunfs/root/claude:414:11098)\n at makeRequest (/$bunfs/root/claude:761:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-18T17:18:10.628Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.18.content.1: unexpected `tool_use_id` found in `tool_result` blocks: toolu_01WFxvwmeb1rvStBEjioxrCC. Each `tool_result` block must have a corresponding `tool_use` block in the previous message.\"},\"request_id\":\"req_011CWEXu5huRN4MMEMT4Swz5\"}\n at generate (/$bunfs/root/claude:414:11098)\n at makeRequest (/$bunfs/root/claude:761:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-18T17:18:11.295Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗