Skip to content

Commit 262de5b

Browse files
committed
test(gateway): expect projected cursor restamp
1 parent db4bec5 commit 262de5b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/gateway/session-history-state.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ describe("SessionHistorySseState", () => {
365365
expect(state.snapshot().messages).toHaveLength(1);
366366
});
367367

368-
test("requests refresh when inline TTS supplement merges into an existing assistant message", () => {
368+
test("requests refresh and restamps seq when inline TTS merges into an assistant message", () => {
369369
const visibleText = "Here is the answer.";
370370
const textSha256 = createHash("sha256").update(visibleText).digest("hex");
371371
const state = newState([assistantTextMessage(visibleText, 2)]);
@@ -406,7 +406,9 @@ describe("SessionHistorySseState", () => {
406406
},
407407
},
408408
],
409-
__openclaw: { seq: 2 },
409+
// The visible row now depends on the later supplement, so reconnect
410+
// cursors must not skip the attachment after delivering seq 2.
411+
__openclaw: { seq: 3 },
410412
},
411413
]);
412414
});

0 commit comments

Comments
 (0)