Skip to content

Keep the connection dialog open and show the error when Save fails #792

Closed

Description

@EVWorth

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).

  1. On ?mock, open + → "New Connection…", fill in the form, click Save.
  2. 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.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 23, 2026
    cefee78
  3. added a commit that references this issue on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions