Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(client): defer active thread cache writes #4006

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

Showing 2 changed files with 60 additions and 5 deletions.

x
0 of 2 viewed, 2 left
46 additions and 0 deletionspackages/client-runtime/src/state/threads-sync.test.tsModified
View file
@@ -5,6 +5,7 @@
ProjectId,
ProviderInstanceId,
ThreadId,
+ TurnId,
type OrchestrationThread,
type OrchestrationThreadDetailSnapshot,
type OrchestrationThreadStreamItem,
@@ -74,6 +75,26 @@
checkpoints: [],
session: null,
};
+const ACTIVE_THREAD: OrchestrationThread = {
+ ...BASE_THREAD,
+ latestTurn: {
+ turnId: TurnId.make("turn-1"),
+ state: "running",
+ requestedAt: "2026-04-01T00:01:00.000Z",
+ startedAt: "2026-04-01T00:01:00.000Z",
+ completedAt: null,
+ assistantMessageId: null,
+ },
+ session: {
+ threadId: THREAD_ID,
+ status: "running",
+ providerName: "codex",
+ runtimeMode: "full-access",
+ activeTurnId: TurnId.make("turn-1"),
+ lastError: null,