Reject stale actions from wallet menus #992

Closed
opened 2026-10-11 12:29:02 +00:00 by johnny9 · 16 comments
johnny9 commented 2026-10-11 12:29:02 +00:00 (Migrated from github.com)

Parent: #577 — Create and manage wallets.

Problem

Send options, coin menus, receiving-address menus and QR controls can retain an old opening after the selected wallet changes. A delayed action can then clear the wrong draft, start an import or change the new wallet's settings.

Suggested fix

Tie each opening to its wallet and relevant request. Close and invalidate it when that context changes or its parent hides. Reject stale actions, including after switching away and back. Preserve each wallet's draft.

Validation

Cover wallet switches, unloads, hidden views and actions during closing. Confirm stale actions affect neither wallet and fresh actions still work.

Related features: #581 Receive, #582 Send, and #923 Fee selection and coin control.

Related work: #974, #975 and #978. The backup-dialog case is already reported in #991.

Parent: #577 — Create and manage wallets. ## Problem Send options, coin menus, receiving-address menus and QR controls can retain an old opening after the selected wallet changes. A delayed action can then clear the wrong draft, start an import or change the new wallet's settings. ## Suggested fix Tie each opening to its wallet and relevant request. Close and invalidate it when that context changes or its parent hides. Reject stale actions, including after switching away and back. Preserve each wallet's draft. ## Validation Cover wallet switches, unloads, hidden views and actions during closing. Confirm stale actions affect neither wallet and fresh actions still work. Related features: #581 Receive, #582 Send, and #923 Fee selection and coin control. Related work: #974, #975 and #978. The backup-dialog case is already reported in #991.
jarolrod commented 2026-10-14 06:08:19 +00:00 (Migrated from github.com)

Adding a concrete PSBT reproduction here. An import dialog opened for A can end up importing into B and replacing B’s send draft.

  1. Load regtest wallets A and B, with mature funds in B.
  2. Create an unsigned PSBT spending B’s coins to send 1.25 BTC to an address in A. Save the decoded psbt field from walletcreatefundedpsbt as a binary .psbt file.
  3. In B’s Send page, enter an unrelated 0.75 BTC draft.
  4. Select A, choose More options → Import PSBT from file, and leave the native file dialog open.
  5. From a terminal connected to the GUI’s RPC server, run unloadwallet "A" false. B becomes selected.
  6. Accept the PSBT in the original dialog.

B’s draft changes from 0.75 to 1.25 BTC, and the review opens for B. Nothing was signed or broadcast.

The acceptance handler uses the currently selected wallet. We should invalidate the pending import when its wallet changes or unloads, before it can touch another wallet’s draft. Related to #975.

Reproduced with native dialogs on macOS/Qt 6.9.0 at b03cf0554841 and its parent 77e8005455cd, so this predates #1009.

Adding a concrete PSBT reproduction here. An import dialog opened for A can end up importing into B and replacing B’s send draft. 1. Load regtest wallets A and B, with mature funds in B. 2. Create an unsigned PSBT spending B’s coins to send 1.25 BTC to an address in A. Save the decoded `psbt` field from `walletcreatefundedpsbt` as a binary `.psbt` file. 3. In B’s Send page, enter an unrelated 0.75 BTC draft. 4. Select A, choose More options → Import PSBT from file, and leave the native file dialog open. 5. From a terminal connected to the GUI’s RPC server, run `unloadwallet "A" false`. B becomes selected. 6. Accept the PSBT in the original dialog. B’s draft changes from 0.75 to 1.25 BTC, and the review opens for B. Nothing was signed or broadcast. The acceptance handler uses the currently selected wallet. We should invalidate the pending import when its wallet changes or unloads, before it can touch another wallet’s draft. Related to #975. Reproduced with native dialogs on macOS/Qt 6.9.0 at `b03cf0554841` and its parent `77e8005455cd`, so this predates #1009.
jarolrod commented 2026-10-14 06:08:20 +00:00 (Migrated from github.com)

There’s another case in the receiving-address QR menu: Save can write B’s address even though the dialog was opened for A.

  1. Load wallets A and B.
  2. Visit Receive in B and wait for its address and QR to load.
  3. Switch to A, open Receive and note its address.
  4. Choose Save QR code and leave the native Save dialog open.
  5. Run unloadwallet "A" false through the GUI’s RPC server. B becomes selected.
  6. Accept Save, then decode the PNG.

The PNG contains B’s address. I confirmed B owns it through getaddressinfo.

Visiting B’s Receive page first matters. Loading a fresh wallet can generate an address-change signal that closes the dialog and hides this case.

We need to invalidate the save when the wallet/request object changes, or keep the original QR tied to the operation. Checking the address only when Save is accepted is already too late.

Reproduced on macOS/Qt 6.9.0 at b03cf0554841 and parent 77e8005455cd. This is also relevant to #972’s QR work.

There’s another case in the receiving-address QR menu: Save can write B’s address even though the dialog was opened for A. 1. Load wallets A and B. 2. Visit Receive in B and wait for its address and QR to load. 3. Switch to A, open Receive and note its address. 4. Choose Save QR code and leave the native Save dialog open. 5. Run `unloadwallet "A" false` through the GUI’s RPC server. B becomes selected. 6. Accept Save, then decode the PNG. The PNG contains B’s address. I confirmed B owns it through `getaddressinfo`. Visiting B’s Receive page first matters. Loading a fresh wallet can generate an address-change signal that closes the dialog and hides this case. We need to invalidate the save when the wallet/request object changes, or keep the original QR tied to the operation. Checking the address only when Save is accepted is already too late. Reproduced on macOS/Qt 6.9.0 at `b03cf0554841` and parent `77e8005455cd`. This is also relevant to #972’s QR work.
jarolrod commented 2026-10-14 06:08:22 +00:00 (Migrated from github.com)

The saved payment-request QR has a smaller variation of this. Switching wallets closes the request modal but leaves its native Save dialog open. Clicking Save then silently writes nothing.

  1. Load A and B, with A selected.
  2. Create a payment request in A and leave its modal open with the QR loaded.
  3. Choose More → Save QR code.
  4. While the native Save dialog is open, run unloadwallet "A" false through the GUI’s RPC server.
  5. Wait for the request modal to close, then save to a valid writable destination.

The picker closes, but there’s no PNG and no save error. I also reproduced this by loading B through RPC while A’s picker was open.

The hidden-card guard stops the export, but we should close and invalidate its file dialog when the request modal closes too.

Tested on macOS/Qt 6.9.0 at b03cf0554841. The relevant code is unchanged from the parent; I only reran this particular case on the PR build.

The saved payment-request QR has a smaller variation of this. Switching wallets closes the request modal but leaves its native Save dialog open. Clicking Save then silently writes nothing. 1. Load A and B, with A selected. 2. Create a payment request in A and leave its modal open with the QR loaded. 3. Choose More → Save QR code. 4. While the native Save dialog is open, run `unloadwallet "A" false` through the GUI’s RPC server. 5. Wait for the request modal to close, then save to a valid writable destination. The picker closes, but there’s no PNG and no save error. I also reproduced this by loading B through RPC while A’s picker was open. The hidden-card guard stops the export, but we should close and invalidate its file dialog when the request modal closes too. Tested on macOS/Qt 6.9.0 at `b03cf0554841`. The relevant code is unchanged from the parent; I only reran this particular case on the PR build.
jarolrod commented 2026-10-15 01:10:00 +00:00 (Migrated from github.com)

Split the concrete reproductions above into two issues so we can fix and verify them separately:

  • #1012: PSBT import can replace another wallet’s send draft after unloading the original wallet.
  • #1013: QR save dialogs can export the wrong wallet’s address or silently write nothing after a wallet/request change.

Both include the reproduction steps and tested commits. Keeping this issue open to track the broader stale-menu behavior.

Split the concrete reproductions above into two issues so we can fix and verify them separately: - #1012: PSBT import can replace another wallet’s send draft after unloading the original wallet. - #1013: QR save dialogs can export the wrong wallet’s address or silently write nothing after a wallet/request change. Both include the reproduction steps and tested commits. Keeping this issue open to track the broader stale-menu behavior.
jarolrod commented 2026-10-15 01:56:12 +00:00 (Migrated from github.com)

Went back through this after splitting out #1012 and #1013. The Send and receive-settings cases still reproduce, and I found a few more paths worth covering here.

Tested on qt6 at d567e3eb2497, native macOS/Qt 6.9.0, with disposable regtest wallets. I used RPC against the GUI’s node for the wallet changes below, so clicking outside didn’t dismiss the menus.

  1. Clear form clears the newly selected wallet’s draft.

    • With B selected, enter a recipient and 0.75 BTC in Send.
    • Load A, then open A’s Send → More options.
    • Run unloadwallet "A" false. B becomes selected, but the menu stays open.
    • Click Clear form.

    B’s existing address and amount are cleared.

  2. The manual payment-request dialog can apply to another wallet.

    • In B, open Send → More options → Open payment request.
    • Enter bitcoin:<valid-regtest-address>?amount=0.4&message=opened-for-B.
    • Run loadwallet "A" false, with A’s Send draft empty.
    • A becomes selected. Click Apply in the dialog that was opened for B.

    A’s draft gets the address, 0.4 BTC amount and opened-for-B message. This is the manual URI entry path, separate from the PSBT file dialog in #1012.

  3. The fee menu also follows the newly selected wallet.

    • Have A and C loaded, with C using Standard.
    • Select A and open Send’s Speed menu.
    • Run unloadwallet "A" false, leaving C selected.
    • Choose Priority from the still-open menu.

    C’s fee target changes from 6 blocks to 2.

  4. Address settings changes the other wallet’s saved preference.

    • Have A and B loaded, with B using Bech32m.
    • Select A, go to Receive and open Address settings.
    • Run unloadwallet "A" false, then choose Base58 (Legacy) from the old menu.

    B switches to Legacy. I also checked settings.json: B’s preference was saved as legacy, while A remained bech32m.

  5. Closing the coin picker leaves its Sort menu behind.

    • In C, open Send → Manual → Select coins → Sort coins.
    • Run loadwallet "A" false.
    • Wait for the coin picker to close, then click Amount in the surviving Sort menu.

    The picker has cleared editingCoins, but the menu still accepts the click. It logs this and stays open until dismissed:

    qrc:/qml/components/CoinsList.qml:366:
    TypeError: Value is null and could not be converted to an object
    

I also tried the Lock coin menu under Settings → Wallet settings → View coins, including wallets sharing the same outputs. That path held up: changing wallets resets the settings page and removes the menu. I couldn’t reproduce a wrong-wallet lock there.

I think these belong here. We need to invalidate the old opening when the wallet changes and close any child menus with their parent. The coin picker is a useful example of why closing just the parent isn’t enough.

Went back through this after splitting out #1012 and #1013. The Send and receive-settings cases still reproduce, and I found a few more paths worth covering here. Tested on `qt6` at [d567e3eb2497](https://github.com/bitcoin-core/gui-qml/commit/d567e3eb2497df3be5d63f4dc1f554b3bf51f59f), native macOS/Qt 6.9.0, with disposable regtest wallets. I used RPC against the GUI’s node for the wallet changes below, so clicking outside didn’t dismiss the menus. 1. **Clear form clears the newly selected wallet’s draft.** - With B selected, enter a recipient and 0.75 BTC in Send. - Load A, then open A’s Send → More options. - Run `unloadwallet "A" false`. B becomes selected, but the menu stays open. - Click Clear form. B’s existing address and amount are cleared. 2. **The manual payment-request dialog can apply to another wallet.** - In B, open Send → More options → Open payment request. - Enter `bitcoin:<valid-regtest-address>?amount=0.4&message=opened-for-B`. - Run `loadwallet "A" false`, with A’s Send draft empty. - A becomes selected. Click Apply in the dialog that was opened for B. A’s draft gets the address, 0.4 BTC amount and `opened-for-B` message. This is the manual URI entry path, separate from the PSBT file dialog in #1012. 3. **The fee menu also follows the newly selected wallet.** - Have A and C loaded, with C using Standard. - Select A and open Send’s Speed menu. - Run `unloadwallet "A" false`, leaving C selected. - Choose Priority from the still-open menu. C’s fee target changes from 6 blocks to 2. 4. **Address settings changes the other wallet’s saved preference.** - Have A and B loaded, with B using Bech32m. - Select A, go to Receive and open Address settings. - Run `unloadwallet "A" false`, then choose Base58 (Legacy) from the old menu. B switches to Legacy. I also checked `settings.json`: B’s preference was saved as `legacy`, while A remained `bech32m`. 5. **Closing the coin picker leaves its Sort menu behind.** - In C, open Send → Manual → Select coins → Sort coins. - Run `loadwallet "A" false`. - Wait for the coin picker to close, then click Amount in the surviving Sort menu. The picker has cleared `editingCoins`, but the menu still accepts the click. It logs this and stays open until dismissed: ```text qrc:/qml/components/CoinsList.qml:366: TypeError: Value is null and could not be converted to an object ``` I also tried the Lock coin menu under Settings → Wallet settings → View coins, including wallets sharing the same outputs. That path held up: changing wallets resets the settings page and removes the menu. I couldn’t reproduce a wrong-wallet lock there. I think these belong here. We need to invalidate the old opening when the wallet changes and close any child menus with their parent. The coin picker is a useful example of why closing just the parent isn’t enough.
jarolrod commented 2026-10-15 03:50:06 +00:00 (Migrated from github.com)

Found another case here where the old menu can delete a request from the other wallet.

  1. Load regtest wallets A and B.
  2. Save an unpaid payment request in B, open it, then close its modal.
  3. Select A, save another unpaid request, and open its More menu.
  4. Through the GUI’s RPC server, run unloadwallet "A" false. B becomes selected and A’s request modal closes, but the menu stays open.
  5. Click Delete payment request.

B’s previously viewed request gets deleted. I repeated this with A’s request ID 3 and B’s request ID 1, so it doesn’t depend on matching IDs. B’s request was still gone after reloading the wallet; A’s requests were unchanged.

We should close the child menu with its modal and reject the old action before it reads the current wallet/request. Moving deletion to a worker doesn’t cover that part.

Reproduced on qt6 at d567e3eb2497, native macOS / Qt 6.9.0. Also relevant to #972 and #990.

Found another case here where the old menu can delete a request from the other wallet. 1. Load regtest wallets A and B. 2. Save an unpaid payment request in B, open it, then close its modal. 3. Select A, save another unpaid request, and open its More menu. 4. Through the GUI’s RPC server, run `unloadwallet "A" false`. B becomes selected and A’s request modal closes, but the menu stays open. 5. Click Delete payment request. B’s previously viewed request gets deleted. I repeated this with A’s request ID 3 and B’s request ID 1, so it doesn’t depend on matching IDs. B’s request was still gone after reloading the wallet; A’s requests were unchanged. We should close the child menu with its modal and reject the old action before it reads the current wallet/request. Moving deletion to a worker doesn’t cover that part. Reproduced on `qt6` at `d567e3eb2497`, native macOS / Qt 6.9.0. Also relevant to #972 and #990.
jarolrod commented 2026-10-15 03:50:07 +00:00 (Migrated from github.com)

There’s a timing gap in the coin picker’s wallet-change handling too.

  1. Load funded regtest wallets A and B, with A selected.
  2. In Send, choose Manual → Select coins.
  3. While the picker is opening, run unloadwallet "A" false through the GUI’s RPC server.

B becomes selected, but the picker stays open with no coins and Use selected inputs disabled, even though B has spendable coins.

I reproduced this twice by triggering the unload while visible was true and opened was still false, without changing the animation. It remained open after the transition finished. The same unload after opened becomes true closes it correctly.

onWalletChanged only checks opened, so it misses the opening transition. That needs to be covered too. This is separate from the surviving Sort menu reported above—the picker itself stays open here.

Tested on qt6 at d567e3eb2497, native macOS / Qt 6.9.0.

Tracking the PSBT Save case separately in #1026.

There’s a timing gap in the coin picker’s wallet-change handling too. 1. Load funded regtest wallets A and B, with A selected. 2. In Send, choose Manual → Select coins. 3. While the picker is opening, run `unloadwallet "A" false` through the GUI’s RPC server. B becomes selected, but the picker stays open with no coins and Use selected inputs disabled, even though B has spendable coins. I reproduced this twice by triggering the unload while `visible` was true and `opened` was still false, without changing the animation. It remained open after the transition finished. The same unload after `opened` becomes true closes it correctly. `onWalletChanged` only checks `opened`, so it misses the opening transition. That needs to be covered too. This is separate from the surviving Sort menu reported above—the picker itself stays open here. Tested on `qt6` at `d567e3eb2497`, native macOS / Qt 6.9.0. Tracking the PSBT Save case separately in #1026.
jarolrod commented 2026-10-15 04:32:42 +00:00 (Migrated from github.com)

The transaction review has the same opening-transition gap as the coin picker above.

  1. Load regtest wallets A and B, with spendable funds in A and a working fee estimate or fallback fee.
  2. In A’s Send page, enter a valid recipient and amount, then click Review Transaction.
  3. During its 350 ms opening animation, run unloadwallet "A" false through the GUI’s RPC server.

B becomes selected, but an empty Review Transaction stays onscreen: no amounts, Save disabled, and no Send button. Close still works.

Reproduced twice on qt6 at d567e3eb2497, native macOS. To hit the timing reliably, I triggered the RPC when the review had visible == true and opened == false, without changing the animation. It stayed open after the transition finished. Unloading after it was fully open closed it correctly.

The wallet-change handler checks opened, so it misses this window too. Let’s cover the review as well when fixing the coin picker.

The transaction review has the same opening-transition gap as the coin picker above. 1. Load regtest wallets A and B, with spendable funds in A and a working fee estimate or fallback fee. 2. In A’s Send page, enter a valid recipient and amount, then click Review Transaction. 3. During its 350 ms opening animation, run `unloadwallet "A" false` through the GUI’s RPC server. B becomes selected, but an empty Review Transaction stays onscreen: no amounts, Save disabled, and no Send button. Close still works. Reproduced twice on `qt6` at `d567e3eb2497`, native macOS. To hit the timing reliably, I triggered the RPC when the review had `visible == true` and `opened == false`, without changing the animation. It stayed open after the transition finished. Unloading after it was fully open closed it correctly. [The wallet-change handler](https://github.com/bitcoin-core/gui-qml/blob/d567e3eb2497df3be5d63f4dc1f554b3bf51f59f/qml/pages/wallet/SendCreate.qml#L137) checks `opened`, so it misses this window too. Let’s cover the review as well when fixing the coin picker.
jarolrod commented 2026-10-15 04:59:45 +00:00 (Migrated from github.com)

The saved-request menu has another variation: Request again can take effect much later, when closing a different request.

  1. Load regtest wallets A and B. In B, save an unpaid request for 0.12 BTC with a message, open it, then close its dialog.
  2. Select A, save another unpaid request and open its More menu.
  3. Run unloadwallet "A" false through the GUI’s RPC server. B becomes selected and the request dialog closes, but More stays open.
  4. Click Request again. Nothing opens yet.
  5. In B, create a new request for 0.34 BTC with a different message, then click Close payment request.

Closing that new request unexpectedly opens Receive with the earlier 0.12 BTC amount and message. Both saved requests are still there.

The old action sets repeatRequestId after its modal has already closed, so the next close picks it up. We need to invalidate the child menu and discard the pending repeat when its opening ends.

Reproduced on qt6 at d567e3eb2497, native macOS / Qt 6.9.0. Also relevant to #972 and #990; #990 still has this deferred-repeat handling in the current code.

The saved-request menu has another variation: Request again can take effect much later, when closing a different request. 1. Load regtest wallets A and B. In B, save an unpaid request for 0.12 BTC with a message, open it, then close its dialog. 2. Select A, save another unpaid request and open its More menu. 3. Run `unloadwallet "A" false` through the GUI’s RPC server. B becomes selected and the request dialog closes, but More stays open. 4. Click Request again. Nothing opens yet. 5. In B, create a new request for 0.34 BTC with a different message, then click Close payment request. Closing that new request unexpectedly opens Receive with the earlier 0.12 BTC amount and message. Both saved requests are still there. The old action sets `repeatRequestId` after its modal has already closed, so the next close picks it up. We need to invalidate the child menu and discard the pending repeat when its opening ends. Reproduced on `qt6` at `d567e3eb2497`, native macOS / Qt 6.9.0. Also relevant to #972 and #990; #990 still has this deferred-repeat handling in the current code.
jarolrod commented 2026-10-15 04:59:46 +00:00 (Migrated from github.com)

Found another dialog to include here: the PSBT “already in your wallet” warning keeps its View transaction action after switching wallets.

  1. Use regtest wallets A and B, with only B loaded. B should have a confirmed outgoing transaction that isn’t in A’s history.
  2. Get that transaction’s hex with gettransaction, pass it to converttopsbt with permitsigdata=true, and base64-decode the result into a binary .psbt file.
  3. In B, choose Send → More options → Import PSBT from file and import it. Leave the Cannot import transaction warning open.
  4. Run loadwallet "A" false through the GUI’s RPC server. A becomes selected, but the warning stays open.
  5. Click View transaction.

It opens an empty transaction detail under A with “This transaction is no longer available.” Importing the same file in B without switching opens the correct details.

The warning keeps B’s transaction ID, but navigation uses the current wallet. It should close when its wallet changes. This happens after the file picker has finished, so it’s separate from the draft replacement in #1012. Related to #975.

Tested on qt6 at d567e3eb2497, native macOS / Qt 6.9.0.

Found another dialog to include here: the PSBT “already in your wallet” warning keeps its View transaction action after switching wallets. 1. Use regtest wallets A and B, with only B loaded. B should have a confirmed outgoing transaction that isn’t in A’s history. 2. Get that transaction’s hex with `gettransaction`, pass it to `converttopsbt` with `permitsigdata=true`, and base64-decode the result into a binary `.psbt` file. 3. In B, choose Send → More options → Import PSBT from file and import it. Leave the Cannot import transaction warning open. 4. Run `loadwallet "A" false` through the GUI’s RPC server. A becomes selected, but the warning stays open. 5. Click View transaction. It opens an empty transaction detail under A with “This transaction is no longer available.” Importing the same file in B without switching opens the correct details. The warning keeps B’s transaction ID, but navigation uses the current wallet. It should close when its wallet changes. This happens after the file picker has finished, so it’s separate from the draft replacement in #1012. Related to #975. Tested on `qt6` at `d567e3eb2497`, native macOS / Qt 6.9.0.
jarolrod commented 2026-10-15 04:59:48 +00:00 (Migrated from github.com)

A smaller case alongside the Sort menu above: “Use locked coin?” also stays open after its picker closes.

  1. Use regtest wallets A and B, with B loaded and A unloaded. Lock a spendable output in B using lockunspent.
  2. Open Send → Manual → Select coins and click the locked coin’s checkbox.
  3. Leave Use locked coin? open and run loadwallet "A" false through the GUI’s RPC server.
  4. Once A is selected and the picker has closed, click Use coin in the surviving confirmation.

The button just dismisses it. Neither wallet’s coin selection changes, and B’s coin stays locked. Clearing pendingLockedCoinId prevents the stale operation, but we should close this confirmation with the picker too.

Reproduced on qt6 at d567e3eb2497, native macOS / Qt 6.9.0. Relevant to #974’s coin-control work.

A smaller case alongside the Sort menu above: “Use locked coin?” also stays open after its picker closes. 1. Use regtest wallets A and B, with B loaded and A unloaded. Lock a spendable output in B using `lockunspent`. 2. Open Send → Manual → Select coins and click the locked coin’s checkbox. 3. Leave Use locked coin? open and run `loadwallet "A" false` through the GUI’s RPC server. 4. Once A is selected and the picker has closed, click Use coin in the surviving confirmation. The button just dismisses it. Neither wallet’s coin selection changes, and B’s coin stays locked. Clearing `pendingLockedCoinId` prevents the stale operation, but we should close this confirmation with the picker too. Reproduced on `qt6` at `d567e3eb2497`, native macOS / Qt 6.9.0. Relevant to #974’s coin-control work.
jarolrod commented 2026-10-15 05:57:34 +00:00 (Migrated from github.com)

Opened #1028 for another case found while checking this: the creation/import completion screen can stay open after a wallet change, but Go to wallet opens a different wallet. The issue includes both reproductions and the tested commit.

Keeping that fix separate since it belongs to the creation/import flow.

Opened #1028 for another case found while checking this: the creation/import completion screen can stay open after a wallet change, but **Go to wallet** opens a different wallet. The issue includes both reproductions and the tested commit. Keeping that fix separate since it belongs to the creation/import flow.
jarolrod commented 2026-10-15 07:16:00 +00:00 (Migrated from github.com)

The password prompt before a normal transaction review also follows the selected wallet. I reproduced this through the native File menu, without needing RPC to unload the wallet.

  1. Have only funded regtest wallets A and B open. A should be encrypted and locked; B unencrypted.
  2. In B, enter a valid recipient and 0.2 BTC in Send.
  3. Switch to A, enter a different 0.1 BTC draft and click Review Transaction.
  4. Leave the password prompt open, then choose File → Close Wallet and confirm closing A. B becomes selected.
  5. Enter A's password in the leftover prompt and click Unlock and continue.

This opens B's 0.2 BTC transaction as Ready to send, even though the prompt was opened for A's 0.1 BTC draft. Nothing is broadcast at this step. Without closing A, the same prompt opens A's correct review.

reviewPassphrasePopup survives the wallet change and submits through root.wallet, which now points to B. We should close and invalidate the prompt when its wallet changes, and reject any stale submission.

Tested on qt6 at d567e3eb2497, native macOS / Qt 6.9.0. Also relevant to #973. This is the preparation prompt in SendCreate.qml; #1027 concerns the later PSBT signing prompt.

The password prompt before a normal transaction review also follows the selected wallet. I reproduced this through the native File menu, without needing RPC to unload the wallet. 1. Have only funded regtest wallets A and B open. A should be encrypted and locked; B unencrypted. 2. In B, enter a valid recipient and 0.2 BTC in Send. 3. Switch to A, enter a different 0.1 BTC draft and click Review Transaction. 4. Leave the password prompt open, then choose File → Close Wallet and confirm closing A. B becomes selected. 5. Enter A's password in the leftover prompt and click Unlock and continue. This opens B's 0.2 BTC transaction as Ready to send, even though the prompt was opened for A's 0.1 BTC draft. Nothing is broadcast at this step. Without closing A, the same prompt opens A's correct review. `reviewPassphrasePopup` survives the wallet change and submits through `root.wallet`, which now points to B. We should close and invalidate the prompt when its wallet changes, and reject any stale submission. Tested on `qt6` at `d567e3eb2497`, native macOS / Qt 6.9.0. Also relevant to #973. This is the preparation prompt in `SendCreate.qml`; #1027 concerns the later PSBT signing prompt.
pseudoramdom commented 2026-10-16 00:38:32 +00:00 (Migrated from github.com)

I'll look in to this

I'll look in to this
jarolrod commented 2026-10-16 06:09:32 +00:00 (Migrated from github.com)

Opened #1045 for another Send case after switching wallets: the expanded recipient can differ from the wallet’s current recipient. Clicking Use maximum on recipient 1 changes recipient 2’s amount, and pasting a payment request into recipient 1 can replace recipient 2’s address. Reproduced both through the normal wallet picker; steps are in the new issue.

Opened #1045 for another Send case after switching wallets: the expanded recipient can differ from the wallet’s current recipient. Clicking Use maximum on recipient 1 changes recipient 2’s amount, and pasting a payment request into recipient 1 can replace recipient 2’s address. Reproduced both through the normal wallet picker; steps are in the new issue.
jarolrod commented 2026-10-16 07:49:42 +00:00 (Migrated from github.com)

Opened #1048 for another Send confirmation case: importing a payment URI while “Use all available funds?” is open replaces the draft but leaves the warning active. This happens within the same wallet, without a timing race. The issue has reproduction steps and results from qt6 and #1046.

Opened #1048 for another Send confirmation case: importing a payment URI while “Use all available funds?” is open replaces the draft but leaves the warning active. This happens within the same wallet, without a timing race. The issue has reproduction steps and results from qt6 and #1046.
Sign in to join this conversation.
No description provided.