Reset transaction review when it reopens #993

Open
opened 2026-10-11 12:29:19 +00:00 by johnny9 · 1 comment
johnny9 commented 2026-10-11 12:29:19 +00:00 (Migrated from github.com)

Parent: #582 — Send Bitcoin. Related: #973.

Problem

Reopening transaction review during its closing animation can retain the previous transaction's Complete page. Its buttons can still refer to the previous transaction or draft.

Suggested fix

Start each opening with the current transaction's review state. Invalidate actions from the previous opening when closing begins. Ensure reopening during an unfinished close resets the displayed page.

Validation

Complete a send, close review, then reopen before the closing animation finishes. Confirm the current review appears and old completion actions cannot clear drafts or navigate to the previous transaction.

Parent: #582 — Send Bitcoin. Related: #973. ## Problem Reopening transaction review during its closing animation can retain the previous transaction's Complete page. Its buttons can still refer to the previous transaction or draft. ## Suggested fix Start each opening with the current transaction's review state. Invalidate actions from the previous opening when closing begins. Ensure reopening during an unfinished close resets the displayed page. ## Validation Complete a send, close review, then reopen before the closing animation finishes. Confirm the current review appears and old completion actions cannot clear drafts or navigate to the previous transaction.
jarolrod commented 2026-10-16 07:10:11 +00:00 (Migrated from github.com)

Found another way to hit this on d567e3e, tested in the native macOS GUI with Qt 6.9.0 on regtest. This doesn’t need an animation race or quick clicking.

Using two valid PSBTs spending different coins from the same wallet:

  1. Import the first PSBT and send it.
  2. Leave the “Transaction sent” screen open.
  3. Use File → Load PSBT from file… to import the second PSBT.
  4. The old success screen stays up instead of showing the second transaction’s review. Clicking Done then clears the newly imported transaction.

I checked the transaction IDs and mempool: only the first transaction was sent. The second PSBT imports and displays correctly once the old completion screen has been dismissed, so the file itself is fine.

The review stack only resets in onClosed. Opening another transaction while the popup is already open leaves the previous Complete page on top. We should reset the review for each new transaction, including this case, so the old completion actions can’t affect the new import.

Found another way to hit this on d567e3e, tested in the native macOS GUI with Qt 6.9.0 on regtest. This doesn’t need an animation race or quick clicking. Using two valid PSBTs spending different coins from the same wallet: 1. Import the first PSBT and send it. 2. Leave the “Transaction sent” screen open. 3. Use **File → Load PSBT from file…** to import the second PSBT. 4. The old success screen stays up instead of showing the second transaction’s review. Clicking **Done** then clears the newly imported transaction. I checked the transaction IDs and mempool: only the first transaction was sent. The second PSBT imports and displays correctly once the old completion screen has been dismissed, so the file itself is fine. The review stack only resets in `onClosed`. Opening another transaction while the popup is already open leaves the previous Complete page on top. We should reset the review for each new transaction, including this case, so the old completion actions can’t affect the new import.
Sign in to join this conversation.
No description provided.