authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-03-02 19:07:55-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-03-02 20:46:05-08:00
logc884947ea8ce16d6cc01aeff2479d5285ac1f397
treed2468e1229a2a7ac351d7255650fc0bfc88b76cf
parent61289a152d7c655a3239ff9c9cfef4ee3bd9f6c0

Scope branch checkout effect during auto branch creation

- Wrap checkout in `Effect.scoped` when creating a new feature branch - Align branch switch lifecycle with scoped effect handling

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

apps/server/src/git/Layers/GitManager.ts+1-1
......@@ -451,7 +451,7 @@ export const makeGitManager = Effect.gen(function* () {
451451 const resolvedBranch = resolveAutoFeatureBranchName(existingBranchNames, preferredBranch);
452452
453453 yield* gitCore.createBranch({ cwd, branch: resolvedBranch });
454 yield* gitCore.checkoutBranch({ cwd, branch: resolvedBranch });
454 yield* Effect.scoped(gitCore.checkoutBranch({ cwd, branch: resolvedBranch }));
455455
456456 return {
457457 branchStep: { status: "created" as const, name: resolvedBranch },