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
This commit is contained in:
Julius Marminge committed 2026-03-01 23:24:22 -08:00
1 parent 96bf54e293
commit 991dd05e72
1 file changed
+1 -1
+1 -1
View File
@@ -1162,7 +1162,7 @@ const makeGitCore = Effect.gen(function* () {
});
// Refresh upstream refs in the background so checkout remains responsive.
yield* Effect.forkDetach(
yield* Effect.forkScoped(
refreshCheckedOutBranchUpstream(input.cwd).pipe(Effect.catch(() => Effect.void)),
);
});