Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

Scope branch checkout effect during auto branch creation

Julius Marmingec884947ea8ce
diff --git a/apps/server/src/git/Layers/GitManager.ts b/apps/server/src/git/Layers/GitManager.ts
index 0122e2672..3cd812afe 100644
--- a/apps/server/src/git/Layers/GitManager.ts
+++ b/apps/server/src/git/Layers/GitManager.ts
@@ -451,7 +451,7 @@ export const makeGitManager = Effect.gen(function* () {
const resolvedBranch = resolveAutoFeatureBranchName(existingBranchNames, preferredBranch);
yield* gitCore.createBranch({ cwd, branch: resolvedBranch });
- yield* gitCore.checkoutBranch({ cwd, branch: resolvedBranch });
+ yield* Effect.scoped(gitCore.checkoutBranch({ cwd, branch: resolvedBranch }));
return {
branchStep: { status: "created" as const, name: resolvedBranch },