Wallet open: show load progress, warnings, and errors from wallet selection #618

Closed
opened 2026-05-06 08:55:24 +00:00 by johnny9 · 2 comments
johnny9 commented 2026-05-06 08:55:24 +00:00 (Migrated from github.com)

Code Gap

Selecting a closed wallet from the wallet selector can trigger an async wallet load. The controller tracks walletLoadInProgress, walletLoadWarnings, and walletLoadError, but the selector/app-shell path does not present a clear loading, warning, or failure state for normal wallet-open attempts.

The popup closes immediately, so an open failure can be easy to miss or appear as no action.

Work Needed

  • Show loading state when opening a closed wallet from the selector.
  • Surface load warnings and errors in the selector or app shell.
  • Keep selection state coherent if loading fails.
  • Preserve migration-required routing for legacy wallets.
  • Add coverage for successful open, failed open, warning-only open, already-open selection, and migration-required open.
<!-- migrated-from: https://github.com/johnny9/BitcoinCoreAppDevelopment/issues/76 --> ## Code Gap Selecting a closed wallet from the wallet selector can trigger an async wallet load. The controller tracks `walletLoadInProgress`, `walletLoadWarnings`, and `walletLoadError`, but the selector/app-shell path does not present a clear loading, warning, or failure state for normal wallet-open attempts. The popup closes immediately, so an open failure can be easy to miss or appear as no action. ## Work Needed - Show loading state when opening a closed wallet from the selector. - Surface load warnings and errors in the selector or app shell. - Keep selection state coherent if loading fails. - Preserve migration-required routing for legacy wallets. - Add coverage for successful open, failed open, warning-only open, already-open selection, and migration-required open.
pseudoramdom commented 2026-05-12 21:59:08 +00:00 (Migrated from github.com)

I'll take this up.

I'll take this up.
jarolrod commented 2026-11-06 19:56:21 +00:00 (Migrated from github.com)

The warning-presentation part of this issue remains unresolved on qt6 at 6e54a48ab571.

Core returns wallet warnings and WalletQmlController stores them in walletLoadWarnings, but no QML view displays that property. A successful wallet operation therefore hides information Core intended the user to see.

To reproduce with a disposable regtest profile:

  1. Start the GUI with no wallets loaded and -fallbackfee=0.02 -walletrbf=1.
  2. Create a wallet through Add wallet, or open an existing unloaded wallet from the wallet selector.
  3. Observe the successful result: neither the high-fallback-fee warning nor the deprecated-option warning is shown.

Importing a wallet backup has the same result. In all three paths, the controller contains both warnings, while the success page, wallet view and node-warning popup omit them. The equivalent RPC operations return them in warnings; removing the warning-producing arguments removes those warnings.

The remaining work is in QML's result presentation: show returned warnings alongside a successful create, open or import, with the affected wallet identified. A warning should not turn a successful operation into an error.

#727 addressed loading states and failures, but this warning-only case remains. The import changes in #986 still store the warnings without displaying them. This reproduction uses normal writable settings and does not depend on -nosettings.

The warning-presentation part of this issue remains unresolved on `qt6` at `6e54a48ab571`. Core returns wallet warnings and `WalletQmlController` stores them in `walletLoadWarnings`, but no QML view displays that property. A successful wallet operation therefore hides information Core intended the user to see. To reproduce with a disposable regtest profile: 1. Start the GUI with no wallets loaded and `-fallbackfee=0.02 -walletrbf=1`. 2. Create a wallet through Add wallet, or open an existing unloaded wallet from the wallet selector. 3. Observe the successful result: neither the high-fallback-fee warning nor the deprecated-option warning is shown. Importing a wallet backup has the same result. In all three paths, the controller contains both warnings, while the success page, wallet view and node-warning popup omit them. The equivalent RPC operations return them in `warnings`; removing the warning-producing arguments removes those warnings. The remaining work is in QML's result presentation: show returned warnings alongside a successful create, open or import, with the affected wallet identified. A warning should not turn a successful operation into an error. #727 addressed loading states and failures, but this warning-only case remains. The import changes in #986 still store the warnings without displaying them. This reproduction uses normal writable settings and does not depend on `-nosettings`.
Sign in to join this conversation.
No description provided.