Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): skip full-message reads while streaming #9032

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/9032/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 5 changed files with 140 additions and 17 deletions (loading 2).

x
0 of 5 viewed, 5 left
52 additions and 7 deletionsapps/server/src/orchestration/Layers/ProjectionPipeline.test.tsModified
View file
@@ -1462,6 +1462,8 @@
const eventStore = yield* OrchestrationEventStore;
const sql = yield* SqlClient.SqlClient;
const now = "2026-01-01T00:00:00.000Z";
+ const streamingAt = "2026-01-01T00:00:01.000Z";
+ const completedAt = "2026-01-01T00:00:02.000Z";
yield* eventStore.append({
type: "project.created",
@@ -1526,7 +1528,7 @@
role: "assistant",
text: "hello",
turnId: null,
- streaming: false,
+ streaming: true,
createdAt: now,
updatedAt: now,
@@ -1539,7 +1541,7 @@
eventId: EventId.make("evt-a4"),
aggregateKind: "thread",
aggregateId: ThreadId.make("thread-a"),
- occurredAt: now,
+ occurredAt: streamingAt,
commandId: CommandId.make("cmd-a4"),
causationEventId: null,
correlationId: CorrelationId.make("cmd-a4"),