Skip to content

Show connect failures in full, where the user is looking #804

Closed

Description

@EVWorth

Severity: P2

What happens

  1. Open ?mock, click +, choose "MariaDB sandbox".
  2. The status bar shows Error: Connection error: Could not connect "MariaDB sand…, cut off at 300px. Hovering shows only "Connection error — click to dismiss", and clicking dismisses it, so the backend's diagnosis ("Nothing is listening on localhost:3307…") can never be read.
  3. In "New Connection…", set the port to 3307 and click Test Connection. The red result strip is cut off with an ellipsis, too.
  4. Enable SSH Tunnel with a host and click Test. The message is cut off and starts with a doubled prefix: "Error: SSH tunnel error: …".

Cause

  • src/components/layout/StatusBar.tsx:249-258: truncate plus max-w-[300px], and a title without the message. Click dismisses.
  • src/components/connection/ConnectionDialog.tsx:131: truncate on the test result.
  • src/components/connection/useConnectionForm.ts:198: String(e) adds "Error: ".

Fix

  • For connect failures, show a toast or inline panel near the tabs with the full text and "Retry" / "Edit connection" actions. At minimum, put the message in title and make click expand rather than dismiss.
  • Let the dialog result wrap (whitespace-normal break-words) and strip the "Error: " prefix.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added 2 commits that reference this issue on Oct 23, 2026
    c919f49
    b96cc53
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