From 1a380b84800fa0b654813c0125fb652a12d1fc5e Mon Sep 17 00:00:00 2001 From: Theo Browne Date: Mon, 5 Oct 2026 21:14:34 -0700 Subject: [PATCH] fix(server): main's startup auto-pull test compiles again #14912 was written before the Effect 4.0.1 upgrade and before startup needed OrchestratorV2. Its test imported effect/unstable/http and effect/unstable/net, which no longer exist, so Typecheck and Test Server 3 fail on main. Use the stable module paths and mock OrchestratorV2. Co-Authored-By: Claude Opus 5.5 (1M context) --- apps/server/src/serverRuntimeStartup.autoPull.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/server/src/serverRuntimeStartup.autoPull.test.ts b/apps/server/src/serverRuntimeStartup.autoPull.test.ts index d5eab968b16c..8313d33dc220 100644 --- a/apps/server/src/serverRuntimeStartup.autoPull.test.ts +++ b/apps/server/src/serverRuntimeStartup.autoPull.test.ts @@ -7,8 +7,8 @@ import * as Deferred from "effect/Deferred"; import * as Effect from "effect/Effect"; import * as Layer from "effect/Layer"; import * as Path from "effect/Path"; -import { HttpServer } from "effect/unstable/http"; -import * as NetAddress from "effect/unstable/net/NetAddress"; +import { HttpServer } from "effect/http"; +import * as NetAddress from "effect/net/NetAddress"; import * as EnvironmentAuth from "./auth/EnvironmentAuth.ts"; import * as ServiceLauncherClient from "./cloud/serviceLauncherClient.ts"; @@ -17,6 +17,7 @@ import * as ServerEnvironment from "./environment/ServerEnvironment.ts"; import * as Keybindings from "./keybindings.ts"; import * as EffectWorker from "./orchestration-v2/EffectWorker.ts"; import * as LegacyV1ThreadImporter from "./orchestration-v2/legacy/LegacyV1ThreadImporter.ts"; +import * as Orchestrator from "./orchestration-v2/Orchestrator.ts"; import * as ProjectStore from "./orchestration-v2/ProjectStore.ts"; import * as ProviderRuntimeRecovery from "./orchestration-v2/ProviderRuntimeRecoveryService.ts"; import * as ProviderSessionManager from "./orchestration-v2/ProviderSessionManager.ts"; @@ -113,6 +114,7 @@ it.effect("parks automatic pull until activation without delaying command readin prepareForShutdown: Effect.void, reconcile: () => Effect.succeed(recovery), }), + Layer.mock(Orchestrator.OrchestratorV2)({ recoverDelegatedTasks: Effect.void }), Layer.mock(ProviderSessionManager.ProviderSessionManagerV2)({ shutdown: Effect.void }), Layer.mock(AgentAwarenessRelay.AgentAwarenessRelay)({ start: () => Effect.void }), Layer.mock(EffectWorker.OrchestrationEffectWorkerV2)({ runOnce: Effect.never }),