Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(computers): keep the add-computer wizard open on a stray outside click

rubenluetke10-beepd994a301b51d
diff --git a/jarvis/ui/web/frontend/src/views/computers/wizard/AddComputerWizard.tsx b/jarvis/ui/web/frontend/src/views/computers/wizard/AddComputerWizard.tsx
index 02116ce319..ccc378f38c 100644
--- a/jarvis/ui/web/frontend/src/views/computers/wizard/AddComputerWizard.tsx
+++ b/jarvis/ui/web/frontend/src/views/computers/wizard/AddComputerWizard.tsx
@@ -87,7 +87,12 @@ export function AddComputerWizard({
return (
<div
className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/50 p-4 backdrop-blur-sm"
- onClick={onClose}
+ // Only an untouched first step closes on a click beside the dialog; once
+ // the user picked a provider, a stray click (or a layout shift under the
+ // pointer) must not throw the half-filled wizard away. X and Esc still close.
+ onClick={() => {
+ if (step === 0) onClose();
+ }}
>
<div
role="dialog"