Files
t3code/apps/web
Josh Gratton 449e18f815 feat(web): confirm before disable / distro-switch when WSL has state
When the user toggles WSL off or switches to a different distro, we
now stop and ask for confirmation if the WSL backend has ever
landed in the saved-environment registry on this machine. Skipping
the dialog when there's no registration to lose keeps the common
case (first-time enable, immediate undo, fresh install) frictionless;
prompting when WSL has actual state protects users from accidentally
disconnecting threads/projects they care about.

Enabling WSL never prompts: it's non-destructive (just starts a
second backend) and getting a confirmation dialog every time would
be noise.

Cancelling the dialog drops pendingWslChange without touching the
underlying setting, so the Switch / Select stay on their current
value.
2026-05-18 10:22:12 -04:00
..
2026-05-15 06:40:13 +00:00