Skip to content

Commit 1a380b8

Browse files
t3dotggclaude
andcommitted
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) <[email protected]>
1 parent 71964e6 commit 1a380b8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎apps/server/src/serverRuntimeStartup.autoPull.test.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import * as Deferred from "effect/Deferred";
77
import * as Effect from "effect/Effect";
88
import * as Layer from "effect/Layer";
99
import * as Path from "effect/Path";
10-
import { HttpServer } from "effect/unstable/http";
11-
import * as NetAddress from "effect/unstable/net/NetAddress";
10+
import { HttpServer } from "effect/http";
11+
import * as NetAddress from "effect/net/NetAddress";
1212

1313
import * as EnvironmentAuth from "./auth/EnvironmentAuth.ts";
1414
import * as ServiceLauncherClient from "./cloud/serviceLauncherClient.ts";
@@ -17,6 +17,7 @@ import * as ServerEnvironment from "./environment/ServerEnvironment.ts";
1717
import * as Keybindings from "./keybindings.ts";
1818
import * as EffectWorker from "./orchestration-v2/EffectWorker.ts";
1919
import * as LegacyV1ThreadImporter from "./orchestration-v2/legacy/LegacyV1ThreadImporter.ts";
20+
import * as Orchestrator from "./orchestration-v2/Orchestrator.ts";
2021
import * as ProjectStore from "./orchestration-v2/ProjectStore.ts";
2122
import * as ProviderRuntimeRecovery from "./orchestration-v2/ProviderRuntimeRecoveryService.ts";
2223
import * as ProviderSessionManager from "./orchestration-v2/ProviderSessionManager.ts";
@@ -113,6 +114,7 @@ it.effect("parks automatic pull until activation without delaying command readin
113114
prepareForShutdown: Effect.void,
114115
reconcile: () => Effect.succeed(recovery),
115116
}),
117+
Layer.mock(Orchestrator.OrchestratorV2)({ recoverDelegatedTasks: Effect.void }),
116118
Layer.mock(ProviderSessionManager.ProviderSessionManagerV2)({ shutdown: Effect.void }),
117119
Layer.mock(AgentAwarenessRelay.AgentAwarenessRelay)({ start: () => Effect.void }),
118120
Layer.mock(EffectWorker.OrchestrationEffectWorkerV2)({ runOnce: Effect.never }),

0 commit comments

Comments
 (0)