Skip to content

[#122] fix(relaykit): keep tool calls when merging adjacent assistant messages for Claude - #128

Merged
woncc merged 1 commit into
mainfrom
codex/r3-0205-issue-122-783735607
Nov 1, 2026
Merged

woncc merged 1 commit into
mainfrom
codex/r3-0205-issue-122-783735607

Conversation

@woncc

@woncc woncc commented Nov 1, 2026

Copy link
Copy Markdown

Summary

隔离 cherry-pick 上游 783735607d863bc182a00b939e498cc22e92f2f2(父 #83 / #65;合同 R3-0205)。

Closes #122

Upstream

  • SHA: 783735607d863bc182a00b939e498cc22e92f2f2
  • Baseline tip: 76a8bcfe0

Test plan

  • cherry-pick CLEAN
  • bounded tests (see writers/test-122.log)
  • git diff --check
  • solo review PASS → t630u bypass squash; restore bypass_actors=[]

Notes

  • 禁止整包 upstream;未动 Hydra / durable wallet / OAuth 语义
  • No Cursor CloudAgent

…es for Claude (QuantumNous#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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[上游/现在能解] 783735607 Claude 合并 assistant 保留 tool_calls

2 participants