Files
Roger Chienandseefs001 783735607d fix(relaykit): keep tool calls when merging adjacent assistant messages for Claude (#7921)
* fix(relaykit): keep tool calls when merging adjacent assistant messages

Adjacent assistant messages with string content were merged keeping only
the second message's tool calls, so tool results for the first message's
calls had no matching tool_use and Claude rejected the request.

- concatenate both messages' tool calls in input order
- skip the "..." placeholder of a tool-call message in the merged text

* fix(relaykit): preserve literal ellipses in assistant message merges

---------

Co-authored-by: seefs001 <[email protected]>
2026-10-20 22:15:40 +08:00
..