authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-03-01 23:23:55-08:00
committergravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-03-01 23:24:22-08:00
log991dd05e72a3afd1dccbcc4522a7e4b98260cae3
tree417d7e79c7e79d930144f19a3b011d8134680d5f
parent96bf54e293b40c62a49162cae8586f9867a868e3

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

1 files changed, 1 insertions(+), 1 deletions(-)

apps/server/src/git/Layers/GitCore.ts+1-1
...@@ -1162,7 +1162,7 @@ const makeGitCore = Effect.gen(function* () {...@@ -1162,7 +1162,7 @@ const makeGitCore = Effect.gen(function* () {
1162 });1162 });
11631163
1164 // Refresh upstream refs in the background so checkout remains responsive.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)),1166 refreshCheckedOutBranchUpstream(input.cwd).pipe(Effect.catch(() => Effect.void)),
1167 );1167 );
1168 });1168 });