Keep PSBT import, review, signing and export off the GUI thread #975

Open
opened 2026-10-02 17:35:47 +00:00 by johnny9 · 1 comment
johnny9 commented 2026-10-02 17:35:47 +00:00 (Migrated from github.com)

Parent: #924.

Importing or saving a PSBT can block the interface on file I/O, decoding, wallet queries or signing. File-size limits do not bound storage latency. tryGetTxStatus() is also not fully nonblocking: after taking the wallet lock it can wait for chain state.

Cover file loading and saving, status checks, ownership and signability queries, fillPSBT(), analysis/finalization, review data, signing and broadcast. Include supported exposed PSBT operations as well as the active import/review flow; do not describe unused APIs as observed user stalls.

Perform blocking work outside the GUI thread. Return complete results, keep getters cached, expose pending/error states and reject obsolete results after another import, wallet change or navigation. Prevent duplicate broadcasts. Preserve partial signatures, imported outputs, fees and metadata across operations; apply clipboard changes on the GUI thread.

Acceptance should cover slow or malformed files, known transactions, watch-only and multisig cases, partial signatures, failed saves, stale imports and closing during work. Coordinate shared submission with #582 and device lifetime with #583.

Parent: #924. Importing or saving a PSBT can block the interface on file I/O, decoding, wallet queries or signing. File-size limits do not bound storage latency. `tryGetTxStatus()` is also not fully nonblocking: after taking the wallet lock it can wait for chain state. Cover file loading and saving, status checks, ownership and signability queries, `fillPSBT()`, analysis/finalization, review data, signing and broadcast. Include supported exposed PSBT operations as well as the active import/review flow; do not describe unused APIs as observed user stalls. Perform blocking work outside the GUI thread. Return complete results, keep getters cached, expose pending/error states and reject obsolete results after another import, wallet change or navigation. Prevent duplicate broadcasts. Preserve partial signatures, imported outputs, fees and metadata across operations; apply clipboard changes on the GUI thread. Acceptance should cover slow or malformed files, known transactions, watch-only and multisig cases, partial signatures, failed saves, stale imports and closing during work. Coordinate shared submission with #582 and device lifetime with #583.
jarolrod commented 2026-11-06 17:14:13 +00:00 (Migrated from github.com)

The failed-save coverage here should also check whether the error is visible long enough to act on.

On Review Transaction, position Save transaction near the bottom of the visible area, then attempt to save into an unwritable directory. The writer returns Could not save PSBT: Permission denied, but the error banner is placed below the action buttons, outside the viewport. It clears automatically after about three seconds, so scrolling down afterwards reveals no explanation and no file was saved.

With enough space to show the banner, the same error is visible. Restoring write permission lets the same review save successfully. This is a feedback-placement and persistence problem in QML; the file writer reports the failure correctly.

Please keep failed-save feedback in view and retain it until dismissed or retried. It currently shares the success message's three-second timeout.

Rechecked on qt6 at 6e54a48ab571, macOS / Qt 6.9, using the offscreen save-path test hook and a disposable directory. The earlier native-dialog reproduction also reached this same error banner.

The failed-save coverage here should also check whether the error is visible long enough to act on. On **Review Transaction**, position **Save transaction** near the bottom of the visible area, then attempt to save into an unwritable directory. The writer returns **Could not save PSBT: Permission denied**, but the error banner is placed below the action buttons, outside the viewport. It clears automatically after about three seconds, so scrolling down afterwards reveals no explanation and no file was saved. With enough space to show the banner, the same error is visible. Restoring write permission lets the same review save successfully. This is a feedback-placement and persistence problem in QML; the file writer reports the failure correctly. Please keep failed-save feedback in view and retain it until dismissed or retried. It currently shares the success message's three-second timeout. Rechecked on `qt6` at `6e54a48ab571`, macOS / Qt 6.9, using the offscreen save-path test hook and a disposable directory. The earlier native-dialog reproduction also reached this same error banner.
Sign in to join this conversation.
No description provided.