The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 10:45 UTC
fix(server): stop event subscribers before closing the database (#27831)
Co-authored-by: maria-rcks <254055478+maria-rcks@users.noreply.github.com>
maria committed
Oct 30, 2026 at 21:50 UTC
1820fbe6bc9f2f98090e5253d6c19678a81640b5
1 file changed
+2
-2
apps/server/src/orchestration-v2/Orchestrator.ts
+2
-2
@@ -13398,7 +13398,7 @@ const makeOrchestrator = Effect.fn("orchestrationV2.Orchestrator.layer")(functio
13398
stored.event.payload.status === "rolled_back"),
13399
),
13400
Stream.runForEach(handleRunUpdate),
13401
- Effect.forkDetach,
13401
+ Effect.forkScoped,
13402
);
13403
13404
// A child whose run ends while its background tasks or its own subagents still run has no
@@ -13440,7 +13440,7 @@ const makeOrchestrator = Effect.fn("orchestrationV2.Orchestrator.layer")(functio
13440
),
13441
),
13442
),
13443
- Effect.forkDetach,
13443
+ Effect.forkScoped,
13444
);
13445
13446
const recoverDelegatedTasks = Effect.gen(function* () {