Repository navigation
fix: enable auto-connect by default; only the active tab reacts to wallet changes - #1549
Open
Ikari-Shinji-re wants to merge 1 commit into
Open
Ikari-Shinji-re wants to merge 1 commit into
Ikari-Shinji-re wants to merge 1 commit into
Conversation
Ikari-Shinji-re
requested review from
RyukTheCoder,
arlert-armin,
llawliet-l-l,
nikaaru and
yeager-eren
as code owners
November 11, 2026 07:59
RyukTheCoder
approved these changes
Nov 14, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lets wallets auto-connect on every page and in every tab, while keeping swap execution limited to the active tab.
Queue manager reacts to wallets only in the active tab
useQueueManager(rango-preset) reacted to wallet connects and disconnects in every tab (retryOn/unblock,checkWaitingForNetworkChange). A paused tab could change the saved state of a swap owned by the active tab.useQueueManagernow takes a requiredisActive:useLayoutEffect, so the queue is already running when those checks happen.useBootstrappassesisActive. The check that runs when saved swaps finish loading only runs in the active tab.wallets-react always auto-connects
autoConnectprop is removed. Auto-connect runs once blockchain meta has loaded.autoConnectwas off skipped this.autoConnect.Swaps still run, and ask for signatures, only in the active tab. Every tab can now auto-connect; wallets with a loose
canEagerConnectmay show a popup per tab, and WalletConnect/TonConnect sessions are shared across tabs.Breaking:
useQueueManagerrequiresisActive, and wallets-react'sautoConnectprop is removed. In this repo only the widget used them.Fixes # (issue)
How did you test this change?
queue-manager-react,queue-manager-rango-preset,wallets-reactandwidget-embeddedChecklist: