From 4d105666b9295dc922cf56ffff34c51d1fcfda7c Mon Sep 17 00:00:00 2001 From: Codex Date: Sat, 30 May 2026 19:07:27 -0700 Subject: [PATCH 1/6] fix(electron): make launch-chooser selections authoritative + harden provisioning Independent review of PR #377 (the launch-connection chooser) surfaced several launch-flow defects. This addresses them: - Honor explicit chooser selections for the current launch. The handler used to persist config and re-run the policy, so alwaysAskOnLaunch looped straight back to the chooser and a "Start local" pick was overridden whenever any server was detected. Selections now flow through a one-shot ForcedLaunch that startup executes directly, bypassing discovery and policy. - Respect "Remember this choice": when unchecked, the server selection is no longer persisted (only the standalone always-ask preference is). - Pre-fill the saved remote URL in the chooser for saved-remote recovery via a tested buildLaunchOptions(). - Validate the local-server port (1024-65535, integers) in both the renderer and the handler before persisting or launching. - Fix the e2e selector: the candidate button's accessible name is "Connect to