rowboat/apps/x
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
..
apps oauth: persist client state, simplify IPC, and refactor 2026-02-17 09:54:34 +05:30
packages fix: merge consecutive tool results for Anthropic API compatibility 2026-02-17 10:08:09 +01:00
.gitignore bootstrap new electron app 2026-01-16 12:05:33 +05:30
eslint.config.mts ignore renderer eslint 2026-01-16 12:05:33 +05:30
package.json integrate electron forge 2026-01-17 10:28:44 +05:30
pnpm-lock.yaml oauth: persist client state, simplify IPC, and refactor 2026-02-17 09:54:34 +05:30
pnpm-workspace.yaml fix pnpm postinstall 2026-01-21 10:47:44 +05:30
tsconfig.base.json bootstrap new electron app 2026-01-16 12:05:33 +05:30