[Bug] Anthropic API Error: Tool result block missing corresponding tool_use block

Resolved 💬 3 comments Opened Nov 29, 2025 by tim-watcha Closed Dec 2, 2025

Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.2.content.1: unexpected tool_use_id found in tool_result blocks: toolu_01W7VNg6BNikepNxpyZEN8SJ. Each tool_result block must have a corresponding tool_use block in the previous
message."},"request_id":"req_011CVbXyuWjVZAugkx8Jnz1Q"}

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.0.55
  • Feedback ID: 5f688c31-18f3-40dd-889c-0b715d7e6e9d

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/choongjaelee/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at TCA (/$bunfs/root/claude:2667:1300)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-28T04:38:56.009Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/choongjaelee/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-28T04:39:05.037Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/choongjaelee/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-28T04:44:19.551Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/choongjaelee/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-28T04:44:26.736Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/choongjaelee/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-28T05:14:27.349Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/choongjaelee/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-28T05:44:26.792Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/choongjaelee/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-28T06:14:26.830Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/choongjaelee/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-28T06:44:27.155Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/choongjaelee/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-28T07:14:26.746Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/choon

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗