Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): long streams no longer store a full copy per paragraph #24700

Closedonly21mil(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/24700/headopened View on GitHub

Showing 2 changed files with 89 additions and 1 deletion.

x
0 of 2 viewed, 2 left
75 additions and 1 deletionapps/server/src/orchestration-v2/assistantStreaming.test.tsModified
View file
@@ -1,5 +1,15 @@
+import {
+ NodeId,
+ ProviderDriverKind,
+ RunId,
+ ThreadId,
+ TurnItemId,
+ type OrchestrationV2TurnItem,
+} from "@t3tools/contracts";
+import type * as ProviderAdapter from "@t3tools/provider-core/server/ProviderAdapter";
+import * as DateTime from "effect/DateTime";
import { describe, expect, it } from "vite-plus/test";
-import { splitBufferedAssistantText } from "./assistantStreaming.ts";
+import { makeAssistantStreamingFilter, splitBufferedAssistantText } from "./assistantStreaming.ts";
​
describe("V2 assistant streaming", () => {
it("keeps code fences intact", () => {
@@ -24,3 +34,67 @@
rest: "Next",
});
});
+​
+function reasoningUpdate(text: string) {
+ const now = DateTime.makeUnsafe("2026-10-24T12:00:00.000Z");
+ const item = {
+ id: TurnItemId.make("reasoning"),
+ threadId: ThreadId.make("thread"),
+ runId: RunId.make("run"),
+ nodeId: NodeId.make("node"),
+ providerThreadId: null,