Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): held assistant drafts keep their position when flushed at turn end #19023

Mergedfixfon(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/19023/headmerged by juliusmarminge View on GitHub

Showing 6 changed files with 24 additions and 2 deletions (loading 3).

x
0 of 6 viewed, 6 left
3 additions and 2 deletionsapps/server/src/orchestration-v2/testkit/fixtures/opencode2_tool_call/output.tsModified
View file
@@ -23,13 +23,14 @@
assertSemanticProjectionIntegrity(projection);
assertVisibleTurnItemsMirrorLocalTurnItems(projection);
// Buffered delivery keeps streaming text out of the read model until
- // `text.ended`, which OpenCode sends after both tool calls started.
+ // `text.ended`, which OpenCode sends after both tool calls started. The text
+ // keeps the position it took when it began, ahead of the tool calls.
assertTurnItemTypeSequence(projection, [
"user_message",
+ "assistant_message",
"dynamic_tool",
"command_execution",
"assistant_message",
- "assistant_message",
"checkpoint",
]);
assertUserMessagesInclude(projection, [OPENCODE2_TOOL_CALL_PROMPT]);
1 addition and 0 deletionsapps/server/src/orchestration-v2/testkit/ProviderReplayHarness.tsModified
View file
@@ -380,6 +380,7 @@
IdAllocator.layer,
layerProviderEventIngestorProvided,
layerServerSettings,
+ layerStores,