Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): restarts keep delegated tasks, queued threads, and stops intact #15323

Mergedmaria-rcksmerged 11 commits intomain fromrefs/pull/15323/headmerged by maria-rcks View on GitHub

Showing 29 changed files with 120 additions and 3 deletions (loading 26).

x
0 of 29 viewed, 29 left
101 additions and 1 deletionapps/server/src/mcp/OrchestratorMcpService.test.tsModified
View file
@@ -11,10 +11,12 @@
type OrchestrationV2ThreadProjection,
type ServerProvider,
} from "@t3tools/contracts";
+import * as DateTime from "effect/DateTime";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as Ref from "effect/Ref";
​
+import { OrchestratorProjectionError } from "../orchestration-v2/Orchestrator.ts";
import type { ProviderAdapterV2Shape } from "../orchestration-v2/ProviderAdapter.ts";
import * as ProviderAdapterRegistry from "../orchestration-v2/ProviderAdapterRegistry.ts";
import * as ThreadManagementService from "../orchestration-v2/ThreadManagementService.ts";
@@ -52,7 +54,22 @@
} as unknown as OrchestrationV2ThreadProjection;
const childProjection = {
thread: { id: childThreadId },
- runs: [{ id: childRunId, ordinal: 1, status: "completed" }],
+ runs: [
+ {
+ id: childRunId,
+ ordinal: 1,
+ status: "completed",
+ startedAt: DateTime.makeUnsafe("2026-10-03T10:00:00Z"),
+ completedAt: DateTime.makeUnsafe("2026-10-03T10:10:00Z"),
+ },
+ {
+ id: RunId.make("run:mcp-ack-continuation"),
+ ordinal: 2,