@devries-cameron20 / t3code-1 / commits / 94beb21a43
Fork 0

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

Skip commit progress stages when create-PR runs push-only

- pass `forcePushOnlyProgress` for the create-PR action - add logic test to ensure only push and PR stages are shown

Julius Marminge committed Mar 2, 2026 at 19:34 UTC 94beb21a4358cda0590c448ba684f663ad476ec1
2 files changed +12
apps/web/src/components/GitActionsControl.logic.test.ts
+11
@@ -804,6 +804,17 @@ describe("buildGitActionProgressStages", () => {
804 assert.deepEqual(stages, ["Pushing to origin/feature/test..."]);
805 });
806
807 + it("skips commit stages for create-pr flow when push-only is forced", () => {
808 + const stages = buildGitActionProgressStages({
809 + action: "commit_push_pr",
810 + hasCustomCommitMessage: false,
811 + hasWorkingTreeChanges: true,
812 + forcePushOnly: true,
813 + pushTarget: "origin/feature/test",
814 + });
815 + assert.deepEqual(stages, ["Pushing to origin/feature/test...", "Creating PR..."]);
816 + });
817 +
818 it("includes commit stages for commit+push when working tree is dirty", () => {
819 const stages = buildGitActionProgressStages({
820 action: "commit_push",
apps/web/src/components/GitActionsControl.tsx
+1
@@ -372,6 +372,7 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
372 closeResultToast();
373 void runGitActionWithToast({
374 action: "commit_push_pr",
375 + forcePushOnlyProgress: true,
376 });
377 },
378 },