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

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

Close result toast only after push confirmation

- Add optional `onConfirmed` callback to `runGitActionWithToast` - Use it from the Push CTA so the existing toast is closed only after user confirms push

Julius Marminge committed Feb 14, 2026 at 23:57 UTC cce74f913c03665bda4fe1bf4448fea42e250946
1 file changed +16 -13
apps/web/src/components/GitActionsControl.tsx
+16 -13
@@ -215,13 +215,16 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
215 action,
216 commitMessage,
217 forcePushOnlyProgress = false,
218 + onConfirmed,
219 }: {
220 action: GitStackedAction;
221 commitMessage?: string;
222 forcePushOnlyProgress?: boolean;
223 + onConfirmed?: () => void;
224 }) => {
225 const confirmed = await maybeConfirmPushToDefaultBranch(action);
226 if (!confirmed) return;
227 + onConfirmed?.();
228
229 const progressStages = buildGitActionProgressStages({
230 action,
@@ -274,19 +277,19 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
277 title: resultToast.title,
278 description: resultToast.description,
279 timeout: 0,
277 - ...(shouldOfferPushCta
278 - ? {
279 - actionProps: {
280 - children: "Push",
281 - onClick: () => {
282 - closeResultToast();
283 - void runGitActionWithToast({
284 - action: "commit_push",
285 - forcePushOnlyProgress: true,
286 - });
287 - },
288 - },
289 - }
280 + ...(shouldOfferPushCta
281 + ? {
282 + actionProps: {
283 + children: "Push",
284 + onClick: () => {
285 + void runGitActionWithToast({
286 + action: "commit_push",
287 + forcePushOnlyProgress: true,
288 + onConfirmed: closeResultToast,
289 + });
290 + },
291 + },
292 + }
293 : shouldOfferOpenPrCta
294 ? {
295 actionProps: {