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.
Namespace PR worktree branch names under t3code
Julius Marminge076608021c89
diff --git a/apps/server/src/git/Layers/GitManager.test.ts b/apps/server/src/git/Layers/GitManager.test.tsindex 2cef6489c..120ed83be 100644--- a/apps/server/src/git/Layers/GitManager.test.ts+++ b/apps/server/src/git/Layers/GitManager.test.ts@@ -1452,13 +1452,13 @@ it.layer(GitManagerTestLayer)("GitManager", (it) => {mode: "worktree",});- expect(result.branch).toBe("pr/91-main");+ expect(result.branch).toBe("t3code/pr-91/main");expect(result.worktreePath).not.toBeNull();expect((yield* runGit(repoDir, ["branch", "--show-current"])).stdout.trim()).toBe("main");expect((yield* runGit(repoDir, ["rev-parse", "main"])).stdout.trim()).toBe(mainBefore);expect((yield* runGit(result.worktreePath as string, ["branch", "--show-current"])).stdout.trim(),- ).toBe("pr/91-main");+ ).toBe("t3code/pr-91/main");}),);@@ -1508,7 +1508,7 @@ it.layer(GitManagerTestLayer)("GitManager", (it) => {mode: "worktree",});- expect(result.branch).toBe("pr/92-main");+ expect(result.branch).toBe("t3code/pr-92/main");expect((yield* runGit(repoDir, ["rev-parse", "main"])).stdout.trim()).toBe(localMainBefore);expect((yield* runGit(result.worktreePath as string, ["rev-parse", "--abbrev-ref", "@{upstream}"]))diff --git a/apps/server/src/git/Layers/GitManager.ts b/apps/server/src/git/Layers/GitManager.tsindex 072bdcc1e..7ac63ab54 100644--- a/apps/server/src/git/Layers/GitManager.ts+++ b/apps/server/src/git/Layers/GitManager.ts@@ -79,7 +79,7 @@ function resolvePullRequestWorktreeLocalBranchName(const sanitizedHeadBranch = sanitizeBranchFragment(pullRequest.headBranch).trim();const suffix = sanitizedHeadBranch.length > 0 ? sanitizedHeadBranch : "head";- return `pr/${pullRequest.number}-${suffix}`;+ return `t3code/pr-${pullRequest.number}/${suffix}`;}function parsePullRequestList(raw: unknown): PullRequestInfo[] {