You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep the connection dialog open and show the error when Save fails #792
Severity: P1 (user input is lost without a clear error)
What happens
I confirmed this by reading the code path end to end. The mock's save_connection_profile never fails, so it cannot be triggered on ?mock yet (see #785).
On ?mock, open + → "New Connection…", fill in the form, click Save.
If the backend save rejects (keyring error, invalid profile, disk error), the dialog still closes. Everything typed is lost, and the only sign is red text truncated at 300px in the status bar.
Cause
src/stores/connectionStore.ts:47-55: saveProfile catches the error, sets error and does not rethrow.
src/components/connection/useConnectionForm.ts:203-212: handleSave therefore always reaches onDone(). Its catch cannot run, and it only logs to the console.
Fix
Rethrow from saveProfile, as connect already does. In handleSave, keep the dialog open on failure and show the message in the dialog's result strip.
Activity
fix(ui): keep connection dialog open on save error
release: 1.4.0 (#871)