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.
This commit is contained in:
orca-bug-scan-bot
2026-06-26 12:34:13 -07:00
parent fe53387747
commit 3d2d6ca16e
@@ -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,