Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): sidebar shell loads 3x faster and startup thread counts 80x faster #27106

Mergedjuliusmarmingemerged 3 commits intomain fromrefs/pull/27106/headmerged by juliusmarminge View on GitHub

Showing 17 changed files with 47 additions and 0 deletions (loading 14).

x
0 of 17 viewed, 17 left
1 addition and 0 deletionsapps/server/integration/transferBudgetV2.integration.test.tsModified
View file
@@ -117,6 +117,7 @@
.pipe(Effect.orDie),
getThreadShell: (id) => projections.getThreadShell(id).pipe(Effect.orDie),
getShellSnapshot: (options) => projections.getShellSnapshot(options).pipe(Effect.orDie),
+ listActiveShellIndex: () => projections.listActiveShellIndex().pipe(Effect.orDie),
listActiveSubagentThreadIds: () =>
projections.listActiveSubagentThreadIds().pipe(Effect.orDie),
readShellSnapshot: (options) =>
12 additions and 0 deletionsapps/server/src/orchestration-v2/Orchestrator.tsModified
View file
@@ -141,6 +141,7 @@
type ProjectionRecords,
type ProjectionCheckpointContext,
type OlderSettledThreadsListing,
+ type ActiveShellIndexEntry,
type OlderSettledThreadsQuery,
type ShellSnapshotOptions,
} from "./ProjectionStore.ts";
@@ -392,6 +393,11 @@
ReadonlyArray<ThreadId>,
OrchestratorV2Error
+ readonly countThreads: () => Effect.Effect<number, OrchestratorV2Error>;
+ readonly listActiveShellIndex: () => Effect.Effect<
+ ReadonlyArray<ActiveShellIndexEntry>,
+ OrchestratorV2Error
+ >;