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

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

Close git action toast before triggering follow-up action

- Dismiss the success toast before handling Push/Open PR/Create PR CTA clicks - Prevent stale result toasts from lingering while starting the next git action

Julius Marminge committed Feb 14, 2026 at 23:04 UTC b5149f595962b51bf237a4de4a43e3cd4e450272
1 file changed +15 -3
apps/web/src/components/GitActionsControl.tsx
+15 -3
@@ -271,6 +271,9 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
271 (action === "commit_push" || action === "commit_push_pr") && !!prUrl;
272 const shouldOfferCreatePrCta =
273 action === "commit_push" && !prUrl && result.push.status === "pushed";
274 + const closeResultToast = () => {
275 + toastManager.close(progressToastId);
276 + };
277
278 toastManager.update(progressToastId, {
279 type: "success",
@@ -281,21 +284,30 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
284 ? {
285 actionProps: {
286 children: "Push",
284 - onClick: () => void runGitActionWithToast({ action: "commit_push" }),
287 + onClick: () => {
288 + closeResultToast();
289 + void runGitActionWithToast({ action: "commit_push" });
290 + },
291 },
292 }
293 : shouldOfferOpenPrCta
294 ? {
295 actionProps: {
296 children: "Open PR",
291 - onClick: () => void api?.shell.openExternal(prUrl),
297 + onClick: () => {
298 + closeResultToast();
299 + void api?.shell.openExternal(prUrl);
300 + },
301 },
302 }
303 : shouldOfferCreatePrCta
304 ? {
305 actionProps: {
306 children: "Create PR",
298 - onClick: () => setActiveDialogAction("create_pr"),
307 + onClick: () => {
308 + closeResultToast();
309 + setActiveDialogAction("create_pr");
310 + },
311 },
312 }
313 : {}),