You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: open-transaction badge survives a disconnect #910
#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