From 8c853d981c96b9273873eefe08ae694ca209ce53 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 17 Apr 2026 19:28:36 -0700 Subject: [PATCH] Return Cursor ACP runtime with explicit scope - Type the runtime effect with `Scope` - Build the ACP session runtime without wrapping it in `Effect.scoped` --- apps/server/src/provider/acp/CursorAcpSupport.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/server/src/provider/acp/CursorAcpSupport.ts b/apps/server/src/provider/acp/CursorAcpSupport.ts index cdbe0c6bd3..ebd81888c8 100644 --- a/apps/server/src/provider/acp/CursorAcpSupport.ts +++ b/apps/server/src/provider/acp/CursorAcpSupport.ts @@ -1,5 +1,5 @@ import { type CursorModelOptions, type CursorSettings } from "@t3tools/contracts"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, Scope } from "effect"; import { ChildProcessSpawner } from "effect/unstable/process"; import type * as EffectAcpErrors from "effect-acp/errors"; @@ -45,7 +45,7 @@ export function buildCursorAcpSpawnInput( export const makeCursorAcpRuntime = ( input: CursorAcpRuntimeInput, -): Effect.Effect => +): Effect.Effect => Effect.gen(function* () { const acpContext = yield* Layer.build( AcpSessionRuntime.layer({ @@ -60,7 +60,7 @@ export const makeCursorAcpRuntime = ( ), ); return yield* Effect.service(AcpSessionRuntime).pipe(Effect.provide(acpContext)); - }).pipe(Effect.scoped); + }); interface CursorAcpModelSelectionRuntime { readonly getConfigOptions: AcpSessionRuntime.AcpSessionRuntime["Service"]["getConfigOptions"];