@devries-cameron20 / t3code-1 / commits / 991dd05e72
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Use forkScoped for background upstream refresh

- replace `Effect.forkDetach` with `Effect.forkScoped` when refreshing checked-out branch upstream refs - keep checkout responsive while ensuring the background task stays tied to scope lifecycle

Julius Marminge committed Mar 1, 2026 at 23:23 UTC 991dd05e72a3afd1dccbcc4522a7e4b98260cae3
1 file changed +1 -1
apps/server/src/git/Layers/GitCore.ts
+1 -1
@@ -1162,7 +1162,7 @@ const makeGitCore = Effect.gen(function* () {
1162 });
1163
1164 // Refresh upstream refs in the background so checkout remains responsive.
1165 - yield* Effect.forkDetach(
1165 + yield* Effect.forkScoped(
1166 refreshCheckedOutBranchUpstream(input.cwd).pipe(Effect.catch(() => Effect.void)),
1167 );
1168 });