Replace the renderer-event approach (which silently failed when the renderer-side listener wasn't yet registered) with an onChangeLaunchMode callback wired through AppMenuOptions. The callback runs resetLaunchModeAndReload in main: writes shell settings to clear the chosen mode, stops the embedded runtime, then navigates the window directly to the renderer entrypoint with no cached query params so the launch gate re-prompts. Also surface the same flow from the dashboard's BackendConnectionErrorPage: when running inside the desktop shell, the "Can't reach the Fusion backend" page now offers a "Change Launch Mode…" button alongside Retry, so a user who chose a broken backend isn't stuck without the Electron menubar. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.9 KiB
1.9 KiB