4 minor findings · 2 suggestions
Findings
[minor] · An accepted payment request can be applied while still queued
Hiding Send during the accepted review's animated exit can update the hidden draft and deliver the request again; shortcut triggering during that interval has not been verified across platforms.
Location: qml/pages/wallet/SendCreate.qml:791 (head).
Details and suggested fix
Apply sets accepted = true before starting the popup's exit transition, which lasts 250 ms in full motion and 150 ms in reduced motion. If Send is hidden while the wallet remains open, interruptPaymentRequest() clears only m_incomingPaymentRequest. MainWindow retains the interrupted request, but the review's later onClosed still applies the saved result because it checks only accepted and the result. Its resolved outcome then does nothing, leaving the request queued for another review that switches back to Send. The Receive command (Ctrl+3) provides a navigation route whose enablement does not depend on popups, although its dispatch during the transition was not exercised. Motion mode off has no such exit interval. Invalidate the saved result and acceptance when interrupting, and add a motion-enabled test that presses Apply before hiding Send.
[minor] · Runtime URI delivery bypasses open native file choosers
A handed-over request can cancel an open wallet-backup chooser or open payment review alongside the PSBT chooser because the delivery guards do not include native file dialogs.
Location: qml/pages/MainWindow.qml:149 (head).
Details and suggested fix
modalPopupOpen() examines only Overlay.overlay.children, but AppFileDialog opens a separate QFileDialog asynchronously. Socket delivery can therefore continue while that chooser is open. applyIncomingPaymentUri() switches to Send, hiding wallet settings and invoking pageHidden(), whose traversal explicitly closes visible file dialogs. The backup is only written from onAccepted, so this silently cancels the backup selection. On Send, canAcceptPaymentRequest() also omits psbtOpenDialog.visible, allowing payment review to open while the chooser remains active and its acceptance handler can import a PSBT. Treat visible AppFileDialog instances as blocking delivery, retry when they close, and cover both arrival sequences in tests.
[minor] · The payment request review ignores Use maximum for explicit amounts
The new review inherits existing import semantics: an equal URI amount retains send-all mode, while a zero preview can disable maximum without warning; no realistic equality trigger was found.
Location: qml/pages/wallet/SendCreate.qml:745 (head).
Details and suggested fix
applyParsedPaymentRequest() assigns amount.satoshi, relying on amountChanged to leave maximum mode. An already-set equal value emits no signal, so Apply leaves maximumRecipient active and preparation still uses CreateSendAllTransaction, despite the incoming review showing a fixed amount. Conversely, when maximum mode has no preview yet and the amount is zero, amountConflict is false and Apply can disable maximum without a replacement warning. The clipboard and file helpers already had this application behavior at base; the new review exposes it without describing the mode. The later transaction review shows the actual output, so this does not establish an unreviewed send. The zero-preview interval was not measured. Explicitly leave maximum mode when applying a request with an amount, and count result.hasAmount && root.wallet.maximumRecipient === root.recipient as replacing a value.
[minor] · A repeated no-wallet notice can close the wallet selector
With no wallet loaded, a new IPC arrival can reopen the notice over the wallet selector, where choosing Open wallet toggles the selector closed.
Location: qml/pages/MainWindow.qml:144 (head).
Details and suggested fix
deliverPendingPaymentUri() announces no-wallet and wallet-disabled requests before checking modalPopupOpen(). Every requestQueued signal resets paymentUriAnnounced, so a second link can reopen the notice after the user chose Open wallet and left the selector open. Choosing Open wallet again invokes toggleWalletSelection(), whose visible-selector branch closes it instead. Serialize announcements behind existing modals as well as payment reviews, and have the Open wallet action call openWalletSelection() rather than toggle. The existing re-announcement test closes the notice directly without leaving a selector open, so it does not cover this sequence.
Optional improvements
[suggestion] · The startup-URI form guards arrive in the IPC integration commit
The review commit says requests wait during coin selection, but its missing guards and modal serialization arrive only in the later IPC commit, making the stacked startup-URI work harder to validate independently.
Location: qml/pages/wallet/SendCreate.qml:146 at 2e4e695b544a (commit) (commit).
Details and suggested fix
At 2e4e695b544a3406d23b4e9817122f36f0c00d2a, canAcceptPaymentRequest() says coin selection owns the form but checks only the request-review, overwrite, and transaction-review popups. e308657700071604f59a2922047d0591065db7b9, the IPC integration commit, adds the coinSelectionPopup, reviewPassphrasePopup, and sendUriImportPopup guards and release hooks, plus MainWindow's overlay-modal check and retry. Move those changes and their matching tests into the earlier review commit or a separate fix in the #934 portion of the series. paymentRequestAcceptable already exists there, so this subset does not depend on IPC. Keep requestQueued re-announcement and server integration in the IPC commit. This leaves the final tree unchanged while making the startup-URI commits independently reviewable.
[suggestion] · The timeout error implies non-delivery despite an uncertain hand-off
If the receiver's GUI thread stalls beyond the 10-second reply timeout, the sender can report that hand-off failed even though the request may still arrive for review; this was not observed in execution.
Location: qml/paymenturiserver.cpp:166 (head).
Details and suggested fix
SendRequests() returns the unconfirmed error when its reply wait expires, and PaymentUriHandOffExitCode() prefixes it with “Payment request could not be handed to the running instance.” The timeout does not retract the transmitted batch: the receiver can still queue it, or may already have queued it without the acknowledgement reaching the sender. The existing no-resend behavior is appropriate, but a user following the outer error and reopening the link can create a duplicate review. Make the timeout message explicitly say delivery is uncertain and that the request may still arrive for review, rather than implying it did not arrive.