@devries-cameron20 / t3code-1 / commits / c91b79b6e2
Fork 0

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

Scope upstream refresh in checkout effect lifecycle

- Replace fire-and-forget `Effect.runPromise` call with `Effect.forkScoped` - Keep checkout responsive while tying upstream refresh to scoped effect management

Julius Marminge committed Feb 28, 2026 at 22:25 UTC c91b79b6e2e6a77bd44a301689e995288f080a79
1 file changed +3 -5
apps/server/src/git/Layers/GitCore.ts
+3 -5
@@ -1167,11 +1167,9 @@ const makeGitCore = Effect.gen(function* () {
1167 });
1168
1169 // Refresh upstream refs in the background so checkout remains responsive.
1170 - yield* Effect.sync(() => {
1171 - void Effect.runPromise(
1172 - refreshCheckedOutBranchUpstream(input.cwd).pipe(Effect.catch(() => Effect.void)),
1173 - );
1174 - });
1170 + yield* Effect.forkScoped(
1171 + refreshCheckedOutBranchUpstream(input.cwd).pipe(Effect.catch(() => Effect.void)),
1172 + );
1173 });
1174
1175 const initRepo: GitCoreShape["initRepo"] = (input) =>