diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsx index e30ff30dfcdfc3ccb14666f7b5e7f0ee05ae9671..68599e0aace177d17ca41d7bc58df7d554ca0296 100644 --- a/apps/web/src/components/GitActionsControl.tsx +++ b/apps/web/src/components/GitActionsControl.tsx @@ -226,17 +226,14 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp }); return; } - const promise = api.shell.openExternal(prUrl); - toastManager.promise(promise, { - loading: { title: "Opening PR...", data: threadToastData }, - success: { title: "PR opened", data: threadToastData }, - error: (err) => ({ + void api.shell.openExternal(prUrl).catch((err) => { + toastManager.add({ + type: "error", title: "Unable to open PR link", description: err instanceof Error ? err.message : "An error occurred.", data: threadToastData, - }), + }); }); - void promise.catch(() => undefined); }, [api, gitStatusForActions?.openPr?.url, threadToastData]); const runGitActionWithToast = useCallback(