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

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

Show push target in Git action progress stages

- Include branch-based remote target in push progress text - Update logic and tests for commit+push and force-push flows

Julius Marminge committed Feb 15, 2026 at 00:02 UTC cc37865c2defa56cd753dfc6bf61e7371fa3f059
3 files changed +14 -4
apps/web/src/components/GitActionsControl.logic.test.ts
+8 -2
@@ -604,8 +604,9 @@ describe("buildGitActionProgressStages", () => {
604 hasCustomCommitMessage: false,
605 hasWorkingTreeChanges: true,
606 forcePushOnly: true,
607 + pushTarget: "origin/feature/test",
608 });
608 - assert.deepEqual(stages, ["Pushing..."]);
609 + assert.deepEqual(stages, ["Pushing to origin/feature/test..."]);
610 });
611
612 it("includes commit stages for commit+push when working tree is dirty", () => {
@@ -613,8 +614,13 @@ describe("buildGitActionProgressStages", () => {
614 action: "commit_push",
615 hasCustomCommitMessage: false,
616 hasWorkingTreeChanges: true,
617 + pushTarget: "origin/feature/test",
618 });
617 - assert.deepEqual(stages, ["Generating commit message...", "Committing...", "Pushing..."]);
619 + assert.deepEqual(stages, [
620 + "Generating commit message...",
621 + "Committing...",
622 + "Pushing to origin/feature/test...",
623 + ]);
624 });
625 });
626
apps/web/src/components/GitActionsControl.logic.ts
+4 -2
@@ -48,6 +48,7 @@ export function buildGitActionProgressStages(input: {
48 hasCustomCommitMessage: boolean;
49 hasWorkingTreeChanges: boolean;
50 forcePushOnly?: boolean;
51 + pushTarget?: string;
52 }): string[] {
53 const shouldIncludeCommitStages =
54 !input.forcePushOnly && (input.action === "commit" || input.hasWorkingTreeChanges);
@@ -56,13 +57,14 @@ export function buildGitActionProgressStages(input: {
57 : input.hasCustomCommitMessage
58 ? ["Committing..."]
59 : ["Generating commit message...", "Committing..."];
60 + const pushStage = input.pushTarget ? `Pushing to ${input.pushTarget}...` : "Pushing...";
61 if (input.action === "commit") {
62 return commitStages;
63 }
64 if (input.action === "commit_push") {
63 - return [...commitStages, "Pushing..."];
65 + return [...commitStages, pushStage];
66 }
65 - return [...commitStages, "Pushing...", "Creating PR..."];
67 + return [...commitStages, pushStage, "Creating PR..."];
68 }
69
70 export function summarizeGitResult(result: GitRunStackedActionResult): {
apps/web/src/components/GitActionsControl.tsx
+2
@@ -226,11 +226,13 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
226 if (!confirmed) return;
227 onConfirmed?.();
228
229 + const pushTarget = gitStatus?.branch ? `origin/${gitStatus.branch}` : undefined;
230 const progressStages = buildGitActionProgressStages({
231 action,
232 hasCustomCommitMessage: !!commitMessage?.trim(),
233 hasWorkingTreeChanges: !!gitStatus?.hasWorkingTreeChanges,
234 forcePushOnly: forcePushOnlyProgress,
235 + pushTarget,
236 });
237 const progressToastId = toastManager.add({
238 type: "loading",