Skip to content

Commit 2a78af1

Browse files
committed
test(chat): preserve late-final streaming contract
1 parent 26475c2 commit 2a78af1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎tests/OpenClaw.Tray.Tests/OpenClawChatDataProviderTests.cs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4229,7 +4229,11 @@ public async Task AgentEvent_StreamBurst_BoundsUiWorkAndDeliversTerminalTranscri
42294229
var timeline = snapshot.Timelines["main"];
42304230
var assistant = Assert.Single(timeline.Entries);
42314231
Assert.Equal(deltaCount, assistant.Text.Length);
4232-
Assert.False(assistant.IsStreaming);
4232+
// The reducer intentionally keeps a delta-only tail reconcilable after
4233+
// lifecycle.end so a late final frame can replace it in place. The
4234+
// terminal guarantee here is TurnActive=false; rendering work remains
4235+
// bounded to the single coalesced snapshot above.
4236+
Assert.True(assistant.IsStreaming);
42334237
Assert.False(timeline.TurnActive);
42344238
Assert.Null(timeline.ActiveAssistantId);
42354239
}

0 commit comments

Comments
 (0)