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

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

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

Julius Marminge committed Mar 2, 2026 at 19:07 UTC c884947ea8ce16d6cc01aeff2479d5285ac1f397
1 file changed +1 -1
apps/server/src/git/Layers/GitManager.ts
+1 -1
@@ -451,7 +451,7 @@ export const makeGitManager = Effect.gen(function* () {
451 const resolvedBranch = resolveAutoFeatureBranchName(existingBranchNames, preferredBranch);
452
453 yield* gitCore.createBranch({ cwd, branch: resolvedBranch });
454 - yield* gitCore.checkoutBranch({ cwd, branch: resolvedBranch });
454 + yield* Effect.scoped(gitCore.checkoutBranch({ cwd, branch: resolvedBranch }));
455
456 return {
457 branchStep: { status: "created" as const, name: resolvedBranch },