Skip to content

ux(connections): the connection tree loses its expanded state and selection when a connection is added #1821

Closed

Description

@ZhuchkaTriplesix

Problem

In a debug build (dev at 25c766c): expand Local MySQL → Databases → querya → Tables, open a table, then add a second connection (Ctrl+N, Mongo, Save). When the dialog closes, the tree is rebuilt: the selected row changes (the new connection is highlighted, the MySQL one was the active workspace) and the expanded branches collapse back to the database level.

Expected

Adding a connection only inserts a row; the other rows keep their expansion and the active selection stays on the connection the workspace shows.

Where

ConnectionsPanelState.reloadConnectionsFromDb / _loadData (called after MainScreenDialogs._showNewConnection): keep the expanded-node and selection state across the reload.

Activity

  1. added
    bugSomething isn't working
    connectionsDatabase connections, URI parsing, pools
    uxUser experience, keyboard shortcuts and interactions
    P3Low priority / Polish & Enhancements
    on Oct 25, 2026
  2. added a commit that references this issue on Oct 25, 2026
  3. ZhuchkaTriplesix commented on Oct 25, 2026

    @ZhuchkaTriplesix
    MemberAuthor

    Fixed by #1830 (connection rows are keyed, so state no longer shifts to the wrong row).

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

    P3Low priority / Polish & EnhancementsbugSomething isn't workingconnectionsDatabase connections, URI parsing, poolsuxUser experience, keyboard shortcuts and interactions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions