From 3d2d6ca16ed170d4110d514279f599ae424b60a3 Mon Sep 17 00:00:00 2001 From: orca-bug-scan-bot Date: Fri, 26 Jun 2026 12:34:13 -0700 Subject: [PATCH] fix: address pr-bug-scan validated finding from #6374 Removed the early-return at AutomationsPage.tsx:1863-1866 so when terminalTarget is null but workspace exists, openRunWorkspace falls through to activateAndRevealWorktree, resuming the workspace. --- src/renderer/src/components/automations/AutomationsPage.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/renderer/src/components/automations/AutomationsPage.tsx b/src/renderer/src/components/automations/AutomationsPage.tsx index eec62ea8413..2dd45a30857 100644 --- a/src/renderer/src/components/automations/AutomationsPage.tsx +++ b/src/renderer/src/components/automations/AutomationsPage.tsx @@ -1860,10 +1860,6 @@ export default function AutomationsPage(): React.JSX.Element { toast.error(runViewState.statusLabel) return } - if (runViewState.availability === 'terminal' && !terminalTarget) { - toast.error(runViewState.statusLabel) - return - } if (terminalTarget && currentLayout) { store.setTabLayout( terminalTarget.tabId,