Skip to content

fix: open-transaction badge survives a disconnect #910

Closed

Description

@EVWorth

#908 added transactionStore, which drives the TX badge, the toolbar's Commit and Rollback, and the close prompt (#843). The flag is cleared when a tab closes or its session ends through server-sessions.ts. Disconnecting a connection kills its sessions, which rolls back any open transaction, but nothing clears the flag for tabs on that connection. They keep showing "Transaction open", and Commit then runs on a new session.

Fix

In the connectionStore disconnect path, call useTransactionStore.getState().forget(tabIds) for the tabs bound to that connection. Add a test that BEGINs, disconnects and checks that the badge is gone.

Activity

  1. added
    bug
    on Oct 29, 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