Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): delegated tasks start and finish without reading the whole parent thread #34551

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 7 commits intomain fromrefs/pull/34551/headmerged by juliusmarminge View on GitHub

Showing 8 changed files with 221 additions and 0 deletions (loading 7).

x
0 of 8 viewed, 8 left
221 additions and 0 deletionsapps/server/src/orchestration-v2/Orchestrator.control-reads.test.tsModified
View file
@@ -1,3 +1,5 @@
+import * as NodeSqlite from "node:sqlite";
+​
import { assert, it } from "@effect/vitest";
import {
CommandId,
@@ -24,8 +26,10 @@
import * as Fiber from "effect/Fiber";
import * as Layer from "effect/Layer";
import * as Metric from "effect/Metric";
+import * as Option from "effect/Option";
import * as Result from "effect/Result";
import * as Stream from "effect/Stream";
+import type * as Tracer from "effect/Tracer";
import * as TestClock from "effect/testing/TestClock";
import * as SqlClient from "effect/sql/SqlClient";
import * as Statement from "effect/sql/Statement";
@@ -44,6 +48,13 @@
import * as ProviderReplayHarness from "./testkit/ProviderReplayHarness.ts";
import type * as ProviderAdapter from "@t3tools/provider-core/server/ProviderAdapter";
​
+declare module "node:sqlite" {
+ interface StatementSync {
+ // Node 26 has this; @types/node 24 does not declare it yet.
+ stat(counter: "vmStep"): number;
+ }
+}
+​
const instanceId = ProviderInstanceId.make("codex");