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.
Skip commit progress stages when create-PR runs push-only
Julius Marminge94beb21a4358
diff --git a/apps/web/src/components/GitActionsControl.logic.test.ts b/apps/web/src/components/GitActionsControl.logic.test.tsindex f4cdeeaea..73d5e9e77 100644--- a/apps/web/src/components/GitActionsControl.logic.test.ts+++ b/apps/web/src/components/GitActionsControl.logic.test.ts@@ -804,6 +804,17 @@ describe("buildGitActionProgressStages", () => {assert.deepEqual(stages, ["Pushing to origin/feature/test..."]);});+ it("skips commit stages for create-pr flow when push-only is forced", () => {+ const stages = buildGitActionProgressStages({+ action: "commit_push_pr",+ hasCustomCommitMessage: false,+ hasWorkingTreeChanges: true,+ forcePushOnly: true,+ pushTarget: "origin/feature/test",+ });+ assert.deepEqual(stages, ["Pushing to origin/feature/test...", "Creating PR..."]);+ });+it("includes commit stages for commit+push when working tree is dirty", () => {const stages = buildGitActionProgressStages({action: "commit_push",diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsxindex 04c03a149..dd299092b 100644--- a/apps/web/src/components/GitActionsControl.tsx+++ b/apps/web/src/components/GitActionsControl.tsx@@ -372,6 +372,7 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActionscloseResultToast();void runGitActionWithToast({action: "commit_push_pr",+ forcePushOnlyProgress: true,});},},