Skip to content

Tell the user when an edit to a connected profile needs a reconnect #831

Closed

Description

@EVWorth

Severity: P2

What happens

  1. Open ?mock=connected, right-click the "Local dev" tab → Edit Connection.
  2. Rename it to "Local dev RENAMED", change the host to 10.9.9.9, click Save.
  3. The connection tab shows the new name. The query toolbar still says "Local dev (127.0.0.1:3306)", and the status bar still shows "Local dev — 127.0.0.1:3306". Nothing says the open session still points at the old server, or that the change applies only after a reconnect.

Cause

  • src/components/layout/ConnectionTabs.tsx:416-424: the dialog closes after save with no follow-up for a connected profile.
  • The status bar and toolbar read the ConnectionInfo snapshot taken at connect time (src/components/layout/StatusBar.tsx:195-197, src/components/editor/QueryToolbar.tsx:60-62), while the tab reads the profile.

Fix

After saving a profile that has a live connection, if connection fields changed (host, port, user, password, SSL, default database), offer "Reconnect now" / "Later" and mark the tab as stale until then. Read display names from the profile everywhere.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 24, 2026
    3de5553
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