Send hides Use payment request after importing a different invoice message #1102

Open
opened 2026-11-10 14:08:42 +00:00 by jarolrod · 0 comments
jarolrod commented 2026-11-10 14:08:42 +00:00 (Migrated from github.com)

After a clipboard payment request has been applied, importing another request that differs only in its message leaves Use payment request hidden for the original clipboard contents. The form no longer matches that request, but Send still treats it as already applied.

To reproduce:

  1. Copy a valid regtest payment URI with amount 0.02, label Shop and message Order1. Open Send and choose Use payment request. Leave that URI on the clipboard.
  2. Open Send options → Open payment request. Paste the same URI into the dialog, then type 2 at the end of its message=Order1 value, making it message=Order12. This changes the dialog text while leaving the clipboard unchanged.
  3. Press Apply, navigate to Activity, then return to Send.
  4. The form shows message Order12, while the clipboard still contains Order1. Use payment request remains hidden.

Changing the amount to 0.03 makes the action reappear. Cancelling the resulting Paste confirmation preserves the current draft; accepting it restores the original 0.02 request and its Order1 message.

The clipboard suppression check in SendCreate.qml compares the applied request's address, amount and label with the current form, but omits the message. It should include the message when that field was specified, so the action becomes available when the form no longer matches the clipboard request.

Related to #1067, which concerns an old, still-open Paste confirmation overwriting a newer request. This case occurs after the replacement import has completed, with no confirmation left open.

The recipient and amount remain unchanged, and the current message is visible. The demonstrated defect is the missing action and incorrect request comparison; no wrong payment was observed.

Reproduced on QML 6e54a48ab571 / Core dc282ff31d1c, macOS / Qt 6.9, using the full offscreen app and isolated regtest wallets. SendCreate.qml and sendrecipient.cpp are byte-identical in current merged eed1f426fcb6; this case was checked in source, not rerun on that revision. Native clipboard integration was not tested.

After a clipboard payment request has been applied, importing another request that differs only in its message leaves **Use payment request** hidden for the original clipboard contents. The form no longer matches that request, but Send still treats it as already applied. To reproduce: 1. Copy a valid regtest payment URI with amount `0.02`, label `Shop` and message `Order1`. Open Send and choose **Use payment request**. Leave that URI on the clipboard. 2. Open **Send options → Open payment request**. Paste the same URI into the dialog, then type `2` at the end of its `message=Order1` value, making it `message=Order12`. This changes the dialog text while leaving the clipboard unchanged. 3. Press **Apply**, navigate to Activity, then return to Send. 4. The form shows message `Order12`, while the clipboard still contains `Order1`. **Use payment request** remains hidden. Changing the amount to `0.03` makes the action reappear. Cancelling the resulting Paste confirmation preserves the current draft; accepting it restores the original `0.02` request and its `Order1` message. The clipboard suppression check in `SendCreate.qml` compares the applied request's address, amount and label with the current form, but omits the message. It should include the message when that field was specified, so the action becomes available when the form no longer matches the clipboard request. Related to [#1067](https://github.com/bitcoin-core/gui-qml/issues/1067), which concerns an old, still-open Paste confirmation overwriting a newer request. This case occurs after the replacement import has completed, with no confirmation left open. The recipient and amount remain unchanged, and the current message is visible. The demonstrated defect is the missing action and incorrect request comparison; no wrong payment was observed. Reproduced on QML `6e54a48ab571` / Core `dc282ff31d1c`, macOS / Qt 6.9, using the full offscreen app and isolated regtest wallets. `SendCreate.qml` and `sendrecipient.cpp` are byte-identical in current merged `eed1f426fcb6`; this case was checked in source, not rerun on that revision. Native clipboard integration was not tested.
Sign in to join this conversation.
No description provided.