rowboat/apps/x/packages
glod 793a07904f fix: merge consecutive tool results for Anthropic API compatibility
When the Anthropic API returns multiple parallel tool calls in a single
assistant message, all tool_result blocks must be sent together in the
next message. Previously, each tool result was sent as a separate message,
causing Anthropic's API to reject the request with:
"tool_use ids were found without tool_result blocks immediately after"

This change modifies convertFromMessages() to merge consecutive tool
messages into a single message containing all tool_result content blocks.

Fixes #375
2026-02-17 10:08:09 +01:00
..
core fix: merge consecutive tool results for Anthropic API compatibility 2026-02-17 10:08:09 +01:00
shared oauth: persist client state, simplify IPC, and refactor 2026-02-17 09:54:34 +05:30