Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
Close git action toast before triggering follow-up action
Julius Marmingeb5149f595962
diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsxindex 6d900b08a..9e35e618e 100644--- a/apps/web/src/components/GitActionsControl.tsx+++ b/apps/web/src/components/GitActionsControl.tsx@@ -271,6 +271,9 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp(action === "commit_push" || action === "commit_push_pr") && !!prUrl;const shouldOfferCreatePrCta =action === "commit_push" && !prUrl && result.push.status === "pushed";+ const closeResultToast = () => {+ toastManager.close(progressToastId);+ };toastManager.update(progressToastId, {type: "success",@@ -281,21 +284,30 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp? {actionProps: {children: "Push",- onClick: () => void runGitActionWithToast({ action: "commit_push" }),+ onClick: () => {+ closeResultToast();+ void runGitActionWithToast({ action: "commit_push" });+ },},}: shouldOfferOpenPrCta? {actionProps: {children: "Open PR",- onClick: () => void api?.shell.openExternal(prUrl),+ onClick: () => {+ closeResultToast();+ void api?.shell.openExternal(prUrl);+ },},}: shouldOfferCreatePrCta? {actionProps: {children: "Create PR",- onClick: () => setActiveDialogAction("create_pr"),+ onClick: () => {+ closeResultToast();+ setActiveDialogAction("create_pr");+ },},}: {}),