fix(agent): preserve sent message identity

This commit is contained in:
_Kerman
2026-07-28 18:07:28 +08:00
parent 46665f8af7
commit 7127528b7f
3 files changed
+4 -4

No files matched your search

+1 -2
View File
@@ -101,10 +101,9 @@ export class ReactLoopAgent implements Agent {
/** Accept and route one unified send item. */
send(
input: UserMessage,
message: UserMessage,
options: SendOptions,
): void {
const message = freezeMessage(input)
const { target, wakeup } = options
if (target === 'next-step' && !wakeup) {
if (this.acceptsNextStep) {