2 minor findings · 3 suggestions
Findings
[minor] · Deferred payment review can consume a request in the placeholder wallet
If the last wallet unloads between delivery scheduling and the deferred callback, Apply writes the request into the placeholder model and removes it from the queue.
Location: qml/pages/wallet/SendCreate.qml:505 (head).
Details and suggested fix
MainWindow.deliverPendingPaymentUri() checks wallet readiness, marks delivery in flight, and calls a Send function that defers handling through Qt.callLater. If the queued unload of the last wallet runs before that callback, selectedWallet becomes m_empty_wallet. SendCreate records no interruption because the review is not visible yet, and MainWindow's retry returns while delivery is in flight. handleIncomingPaymentUri() then opens the review without rechecking readiness. The placeholder has its own recipient model, so Apply writes there and reports "resolved", causing MainWindow to dequeue the request. Loading a real wallet afterward does not recover it. Recheck walletController.isWalletLoaded and canAcceptPaymentRequest() at the start of the deferred handler, reporting "interrupted" when delivery is no longer possible so the request remains queued. A switch to another loaded wallet does not itself lose the request. How often the unload ordering occurs in practice is unconfirmed.
[minor] · Escape on the wallet-disabled notice stalls the payment queue
With -disablewallet and several command-line URIs, Escape closes the first notice without advancing the queue, leaving later requests unreported.
Location: qml/pages/MainWindow.qml:421 (head).
Details and suggested fix
The notice's OK action has the default AlertAction.Normal role. Escape calls AlertPopup.cancel(), which triggers only Cancel or Neutral actions and otherwise just closes the popup. Consequently, discardPendingPaymentUri() never runs. The front request remains queued and paymentUriAnnounced remains true, so even a later delivery attempt cannot reopen the notice or reach the following requests. Give OK role: AlertAction.Neutral so Escape acknowledges the request through the same handler as clicking OK. The impact is limited because the first notice already explains that this application instance cannot process payments.
Optional improvements
[suggestion] · Payment review hides the amount retained by an amount-less URI
A URI without amount= hides the review's Amount row, although Apply preserves the form's existing amount and can pair it with the next queued request's address.
Location: qml/pages/wallet/SendCreate.qml:521 (head).
Details and suggested fix
For example, applying a request for address A with amount=0.1, followed by an amount-less request for address B, leaves B paired with 0.1 BTC. The second review shows no amount, and its generic replacement warning reflects the address conflict rather than the retained amount. With an empty address and an existing amount, that amount causes no warning at all because paymentUriConflicts() requires result.hasAmount. Show the retained amount explicitly, such as "Not specified; keeps X", so the review describes what Apply will do without changing import semantics. The comment claiming widgets parity is also inaccurate: the pinned widgets implementation always sets the request amount and adds a new entry when the existing address is populated. The later transaction review still shows the resulting address and amount before sending.
[suggestion] · Payment queue outcomes lack request identity and complete retry wiring
Startup-only queuing avoids the problematic combinations today, but runtime integration would encounter unscoped completion signals, missing delivery triggers and an availability check that omits transaction review.
Location: qml/pages/MainWindow.qml:158 (head).
Details and suggested fix
finishPendingPaymentUri() ignores non-"available" outcomes when no delivery is in flight, so closing a clipboard confirmation that blocked delivery would not retry the waiting request. Conversely, clipboard "resolved" or "rejected" outcomes share the command-line signal without identifying a request and could consume an unrelated in-flight entry. onPendingRequestChanged does not initiate delivery, and canAcceptPaymentRequest() omits transactionReviewPopup, which opens without increasing stack depth. No current caller queues runtime arrivals, and no current sequence was found that holds a startup request behind clipboard confirmation or transaction review. Before connecting runtime arrivals, separate availability notifications from request-scoped completion, retry when blockers close or the queue becomes nonempty, and include transaction review in the readiness guard. This keeps startup behavior while giving the follow-up integration a complete delivery contract.
[suggestion] · MainRouting lacks the new paymentUriHandler context property
MainWindow's new payment queue references are undefined in the QML test engine, leaving queue routing outside the fast integration tests.
Location: qml/pages/MainWindow.qml:459 (head).
Details and suggested fix
QmlTestsSetup::qmlEngineAvailable() does not register paymentUriHandler, although MainRouting creates MainWindow for each case. The new Connections target therefore references an undefined name, and the delivery callback scheduled by Component.onCompleted does so again. Existing routing assertions do not exercise completion, interruption or the payment notices; the new SendCreate tests instantiate only the Send page, while startup integration relies on full application restarts. Add a real PaymentUriHandler to the QML test target and context, clear its queue in createMain(), and use it for focused MainRouting cases covering those outcomes and Escape on the wallet-disabled notice. The handler requires no backend.