Skip to content

Commit 7ced932

Browse files
fix(server): ACP streamed chunks compare message ids exactly
Streamed chunks trimmed the message id while full updates compared it raw, so ids differing only in whitespace merged and a full update followed by a chunk with the same padded id split. ACP message ids are opaque, so chunks now keep the id as sent. Fixes #35820 Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 4e5d86a commit 7ced932

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/provider-acp/src/server/adapter.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3002,7 +3002,7 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
30023002
if (other !== kind) yield* closeTextStream(context, other);
30033003
}
30043004
const stream = textStreamFor(context, kind);
3005-
const sourceMessageId = messageId?.trim() || null;
3005+
const sourceMessageId = messageId || null;
30063006
if (
30073007
stream.current !== null &&
30083008
sourceMessageId !== null &&

0 commit comments

Comments
 (0)