1 minor finding · 3 suggestions
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.
Findings
[minor] · Imports chosen during another wallet load are silently discarded
After a failed import, Details can reopen the import flow during another wallet load, where the enabled Import row accepts a file but importFile() silently discards it; this sequence is source-traced, not observed.
Location: qml/pages/wallet/WalletCreationFlow.qml:91 (head).
Details and suggested fix
After a background import fails, start opening a closed wallet and click Details on the retained failure banner. openForImportError() opens the modal without checking the load state. Although Choose another file is disabled, Back returns to WalletCreationTypePage, where walletTypeImport checks only importingWallet. The user can therefore open the file picker, but if the other load is still running when a file is accepted, the new walletWorkerBusy guard returns before starting an import or displaying any explanation. The new Details route exposes this mismatch; the base flow did not have the busy rejection. Guard all import entry controls with the worker-busy state and explain why importing is temporarily unavailable. Extend test_import_retry_waits_while_a_wallet_loads to cover Back followed by the Import row, rather than only the disabled retry button and a direct importFile() call.
Optional improvements
[suggestion] · The import guidance omits possible stalls in wallet and chain updates
The invitation to keep using the app omits a pre-existing pinned-Core limitation: other wallets can stop updating during the import rescan, and sufficient queued callbacks can also stall chain progress.
Location: qml/pages/wallet/WalletCreationTypePage.qml:31 (head).
Details and suggested fix
In pinned Core commit 44901d8f64cb617714707bd025ecd83f108353c2, CWallet::AttachChain() registers notifications and holds cs_wallet across Scanner().Scan(). A mempool or non-historical block callback reaching that wallet waits for the lock. Because validation callbacks share a SerialTaskRunner, subsequent events for other wallets also wait, delaying incoming transactions and confirmation updates. With more than ten callbacks pending, ActivateBestChain() waits for the queue too. These backend limits are unchanged, but the newly usable wallet views can now display stale information while the text encourages continued use. Add a warning to the import guidance and selector status that wallet and chain updates may pause until the import finishes. This recommendation follows the source contract; the frequency and duration of such stalls in production were not measured.
[suggestion] · Import banners bypass ToastBanner's fade-out lifecycle
Both import banners replace visible instead of using shown, preventing ToastBanner from retaining visibility during its hide animation; the error banner also unnecessarily redeclares shown.
Location: qml/pages/MainWindow.qml:489 (head).
Details and suggested fix
ToastBanner documents that callers should drive shown and implements visible: shown || hideAnim.running. Both new instances replace that binding, so clearing their display condition immediately makes them invisible instead of letting the component finish its hide animation. Remove the error banner's local shown declaration and use the inherited property for both banners, retaining the shutdown condition in their shown-state logic. Leave visible owned by ToastBanner and make dismissal assertions wait for the fade-out. This lifecycle mismatch is established from source, not a rendered UI check.
[suggestion] · The quit-path rewrite shares a commit with controller and import-presentation changes
Commit e1b1f6f54ac990ee1b0c5a3cc8f787629712c01d combines platform quit routing, wallet-selection/error semantics, and closable-dialog/banner UI, making the shutdown change harder to validate independently.
Location: qml/pages/MainWindow.qml:98 at e1b1f6f54ac9 (commit) (commit).
Details and suggested fix
After 2646df3ef18adc8c5954d9a5d320d9012bd99b40 introduces separate import state and da66572247f49fb87232e427830df4438218754a adds the selector row, split e1b1f6f54ac990ee1b0c5a3cc8f787629712c01d into three review units: controller semantics and their tests first, complete quit confirmation second, and the closable dialog with result banners third. The controller unit includes the importing-wallet close guard, optional selection in addOrSelectWalletModel(), and dedicated import errors with their shared-error compatibility notification. The quit unit should keep the quitHandler context property, removal of the direct C++ shutdown connection, QML routing, mocks, and quit tests together. This isolates platform shutdown behavior from wallet selection and presentation changes. The existing success page already opens its wallet through routeToShell(), so the controller-first step retains that route. Put quit confirmation before the closable dialog to avoid introducing a dismissible import workflow without its warning, and retain 4cadb820ca0dbf0bbef07108ba12eb15a29c9ca9 as the subsequent retry-progress fix. Split shared mock and test hunks with their owning changes. This changes review structure only, not the final tree.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: New import strings lack translator context (earlier report)
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
Wallet-file restoration was introduced to replace unintuitive manual file handling and make backup recovery accessible without RPC expertise.
Bitcoin PR #22541 introduced restoration from an external backup; GUI PR #471 explicitly motivated exposing it for non-technical users. The affected QML import path calls that restoration backend, so understandable progress, completion and recoverable errors belong to the original accessibility goal rather than being merely cosmetic additions.
Restoration was deliberately moved into the wallet layer for reuse by the GUI, including removal of the invalid destination when restoration fails.
The inspected pinned RestoreWallet implementation copies the backup into the wallet directory, loads it, and removes the copied file on loading failure. This explains why the selector's importing entry is provisional and why disk presence alone cannot establish successful import. The patch's separate import state and row reconciliation sit on this pre-existing backend contract.
Historically, long rescans were not intended to immobilize unrelated GUI activity; retaining broad locks for the whole scan was identified as a responsiveness problem.
PR #11281 described scans lasting hours and explained that transaction-table and balance updates could block on scan-held locks, making even cancellation inaccessible. Its discussion distinguished useful concurrency across wallets from dangerous or counterproductive concurrent scans of the same wallet. This supports separating an importing wallet's busy state from application-wide availability, without implying that every operation can safely run concurrently.
Source 1 · Source 2 · Source 3 · Source 4
The QML application's worker architecture explicitly trades immediate teardown for keeping event processing available while accepted backend work is drained.
The earlier same-repository PR #980 states that initialization and interruption run on owned workers, query producers stop, and accepted work drains before Core is released. The inspected BackendExecutor uses queued worker execution and GUI-thread completion delivery. An import therefore has both a backend-operation lifetime and a presentation lifetime; dismissing its dialog need not terminate its work, while shutdown requires coordination beyond hiding UI.
The reported usability requirement was specifically to continue using the application while an imported wallet scans for relevant transactions.
Issue #840 reports that importing an unloaded wallet leaves the GUI unavailable during a scan that can take minutes. This directly explains the affected behavior's scope: retain access to existing wallets during the import rather than eliminate scanning or relax wallet synchronization requirements.
Ralph's inferences
The distinction between usable open wallets and unavailable wallet-management operations follows the application's scheduling boundary, not a general Bitcoin prohibition on using wallets during rescans.
At the base, startWalletImport sets the shared load flag until restoreWallet returns. At the head, import has its own state; selecting an existing model remains possible, while operations needing the controller's wallet-command worker are refused. Read alongside the historical cross-wallet concurrency discussion and worker-draining design, this is best understood as preserving interactivity while acknowledging a serialized worker's occupied capacity.
Source 1 · Source 2 · Source 3
Non-interrupting completion and an explicit action to open the imported wallet preserve the user's current working context once imports can outlive their dialog.
The head controller avoids selecting the imported wallet when another wallet is selected, unlike the base's unconditional add-or-select completion. This is a logical companion to the historical requirement that users continue working during rescans: asynchronous completion should not itself become an unrelated navigation action. The inspected history supports that premise, but does not document this exact selection or banner policy.