@devries-cameron20 / t3code Mirror · read-only / commits / 8bbba3d358
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 18:30 UTC

Skip commit progress stages when no files changed

- Only include commit-related progress steps for stacked actions when there are working tree changes - Prevents showing "Generating commit message"/"Committing" during pure push or PR flows

Julius Marminge committed Feb 14, 2026 at 23:02 UTC 8bbba3d358ae2fcd4ac47a0a9a2c96909f65089a
1 file changed +9 -3
apps/web/src/components/GitActionsControl.tsx
+9 -3
@@ -124,10 +124,14 @@ function GitQuickActionIcon({ quickAction }: { quickAction: GitQuickAction }) {
124 function buildGitActionProgressStages(input: {
125 action: GitStackedAction;
126 hasCustomCommitMessage: boolean;
127 + hasWorkingTreeChanges: boolean;
128 }): string[] {
128 - const commitStages = input.hasCustomCommitMessage
129 - ? ["Committing..."]
130 - : ["Generating commit message...", "Committing..."];
129 + const shouldIncludeCommitStages = input.action === "commit" || input.hasWorkingTreeChanges;
130 + const commitStages = !shouldIncludeCommitStages
131 + ? []
132 + : input.hasCustomCommitMessage
133 + ? ["Committing..."]
134 + : ["Generating commit message...", "Committing..."];
135 if (input.action === "commit") {
136 return commitStages;
137 }
@@ -229,6 +233,7 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
233 const progressStages = buildGitActionProgressStages({
234 action,
235 hasCustomCommitMessage: !!commitMessage?.trim(),
236 + hasWorkingTreeChanges: !!gitStatus?.hasWorkingTreeChanges,
237 });
238 const progressToastId = toastManager.add({
239 type: "loading",
@@ -306,6 +311,7 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
311 },
312 [
313 api,
314 + gitStatus?.hasWorkingTreeChanges,
315 gitStatus?.openPr?.url,
316 maybeConfirmPushToDefaultBranch,
317 runImmediateGitActionMutation,