Missing Tool Result Block in API Request Handling

Resolved 💬 3 comments Opened Jun 10, 2025 by slyfox1186 Closed Jun 11, 2025

Bug Description
● Search(pattern: "limit.50|limit.49|CONTACTS_PER_PAGE", path: "src/frontend")
⎿  Found 8 files (ctrl+r to expand)
⎿  Interrupted by user
⎿  Interrupted by user
⎿  Interrupted by user

becauyse of pagination

⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.81: tool_use ids were found without tool_result blocks immediately after: toolu_01Vy9qS5ecmJ9hBoCqoN2H9Z.
Each tool_use block must have a corresponding tool_result block in the next message."}}

becauyse of pagination

⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.81: tool_use ids were found without tool_result blocks immediately after: toolu_01Vy9qS5ecmJ9hBoCqoN2H9Z.
Each tool_use block must have a corresponding tool_result block in the next message."}}

Environment Info

  • Platform: linux
  • Terminal: vte-based
  • Version: 1.0.17
  • Feedback ID: ce38c274-1072-42a6-a13d-049466160d7a

Errors

[]

View original on GitHub ↗

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