Repository navigation
Fix hidden workflow launch workspace selector - #1071
Conversation
dovvnloading
left a comment
There was a problem hiding this comment.
Reviewed the complete one-file diff against #1042 and traced the selector, polling, preview/approve/start, and navigation code in WorkflowLibraryDialog and WorkflowRunLauncher. The selected workspace is visible even with one workspace, the empty-list control is disabled, and the workspace-scoped key discards a stale preview when switching targets. All three launch requests use the workspace captured by that launcher; the completion callback returns the library to the workspace where the run was actually started. I found no blocking correctness issue in this change.
CI observed: frontend checks (including typecheck, lint, Vitest and build), wheel build/install and POSIX permissions passed; Windows compile, ruff, Vite build, pytest and performance pytest steps passed, with the final dependency audit still running at the time of this review. Playwright boot-smoke is intentionally skipped for PR-triggered CI per ci.yml. I did not run the app or a two-workspace browser scenario independently. No new regression test is included; recommend following up with a component/browser test covering a workspace switch before and after preview and a switch during an in-flight launch. The first-workspace default is unchanged.
Ready for merge once remaining CI completes successfully. Posting a comment rather than a formal approval because this review is submitted from the PR author's account.
Fixes #1042.
Validation: source inspection only; component and browser tests have not been run or added. Follow-up verification: two workspaces, switch target before/after preview, confirm preview and start URLs, switch tabs and reopen. The existing first-workspace default is retained.