10 minor findings · 5 suggestions
Earlier concerns neither republished nor resolved: 3 minor findings · 2 suggestions. See the Run archive for their assessments.
Findings
[minor] · Failed signer approval bypasses version 0 PSBT export
A failed signer approval can make Save transaction write a version 2 PSBT, leaving the new version 0 compatibility fix incomplete; base always exported version 2.
Location: qml/models/walletmodel.cpp:2699 (head).
Details and suggested fix
For a wallet-created review without a PSBT, ExecuteApproval constructs a version 2 signer document. If signing fails without adding signatures, retain_verified_partial can still return that document as verified. publishApproval installs it even though approval failed. A subsequent Save calls startPsbtFileExport directly because a document now exists, bypassing the version 0 construction in ExportReview. For example, approving with no device connected and then saving can produce a file Core 31 and older cannot read. Do not install a failed attempt's document when it contributes no signatures, so this case continues through version 0 export. Add a failed-approval-then-Save test that checks the exported version.
[minor] · Hiding Activity loses the user's list position
Opening transaction details or switching away from Activity detaches its list model, so returning rebuilds the list without restoring the user's position.
Location: qml/pages/wallet/ActivityListPage.qml:407 (head).
Details and suggested fix
model: root.visible ? activityFilterProxy : null clears the ListView when its page is hidden. navigateToTransaction pushes details over that page, and changing tabs hides it too. Clearing and reattaching the model rebuilds the delegates and resets the list position. The heldContentY mechanism only handles proxy move/reset/layout signals and expires after 400 ms; it does not preserve navigation state. Keep the teardown protection, but capture a stable row identity and offset before detaching and restore them after reattachment and layout. Cover both scrolled list → details → Back and Activity → another tab → Activity.
[minor] · Sign only enables Broadcast before assessing node policy
A completed sign-only action can label an imported PSBT “Ready to broadcast” despite node-policy rejection; Broadcast still rechecks policy before submitting it.
Location: qml/models/walletsendhandle.cpp:513 (head).
Details and suggested fix
finishSendWork installs a clean sign-only result and calls setCanBroadcast(m_node && !result->partial). Unlike psbtwork::Inspect, this path does not obtain node-policy facts or run psbtdocument::Qualify. An imported transaction with a non-final locktime or a below-relay fee can therefore become “Ready to broadcast” immediately after signing, only to fail the policy check when Broadcast is clicked. Run the same assessment after sign-only completion before enabling Broadcast, or distinguish unassessed completeness from broadcast readiness.
[minor] · A refused fee-bump commit becomes an uncertain attempt
If eligibility changes just before commit, Speed Up can enter a non-resettable uncertain state even though Core committed nothing; this narrow race has not been observed.
Location: qml/walletbump.cpp:205 (head).
Details and suggested fix
walletbump::Execute maps a false commitBumpTransaction return to Error::Commit, and publishCommit maps that error to Phase::Uncertain. In pinned Core, every non-OK return from feebumper::CommitTransaction precedes wallet.CommitTransaction; after committing it returns OK. The original can confirm, gain a descendant, or be replaced after the last scope check, including during admission assessment. A refusal then leaves the attempt uncertain: reset() refuses it, and rechecking only changes the message. Map a false return to Failed or NeedsRevalidation, retaining Uncertain for exceptions whose effects cannot be established.
[minor] · Reuse avoidance can exclude the remainder of a partially spent address
On an avoid_reuse wallet, Send can partially spend an address and then exclude its remaining outputs because it does not also request partial-spend avoidance.
Location: qml/models/coinselection.h:33 (head).
Details and suggested fix
ApplyInputPolicy sets m_avoid_address_reuse but not m_avoid_partial_spends. Pinned sendtoaddress enables both when reuse avoidance is selected. Core's transaction builder only opportunistically chooses the grouped alternative when its fee fits within m_max_aps_fee, so the app can still select only some outputs from an address. The remaining outputs then become dirty and disappear from the app's Send balance and maximum, although the funds remain in the wallet. Also enable partial-spend avoidance when the wallet's avoid_reuse flag is enabled, and test automatic selection with two outputs at one address.
[minor] · Receive keeps a refused type hidden after descriptor import
Importing an active descriptor does not restore a previously refused receive type because its negative capability cache survives until wallet reload.
Location: qml/walletopening.cpp:540 (head).
Details and suggested fix
markReceiveTypeUnavailable only inserts into the session's set. preferredReceiveType skips those entries, and metadata republishes them to availableReceiveAddressTypes, which removes them from Receive. The handleCanGetAddressesChanged subscription only calls ingress(0) without invalidating the set. Core emits this notification when LoadActiveScriptPubKeyMan activates a manager, including runtime descriptor imports. A type refused before that import therefore remains hidden until unload/reload. Clear or re-probe the negative cache on the capability notification, and test a refusal followed by importing a matching active descriptor.
[minor] · Discarded clipboard-import objects accumulate during editing
Recipient edits with nonempty clipboard text repeatedly allocate import objects that are cancelled but retained until the wallet's Send view is destroyed.
Location: qml/models/sendimportmodel.cpp:231 (head).
Details and suggested fix
WalletImportTarget emits recipientEdited for address, amount, label, message, and payment-request changes. SendImportModel responds by cancelling its previous clipboard check and calling importText(..., this), which allocates a new PaymentImportOperation parented to the model. cancel() releases backend ownership but does not delete the facade, and cancelImport, cancelAll, and checkClipboard never delete discarded operations either. Ordinary editing therefore accumulates QObjects and their remaining connections for the view's lifetime. Schedule discarded facades for deleteLater() after cancellation and test that repeated edits keep the child count bounded.
[minor] · Queued configuration resets appear clean to settings navigation
Before a queued “Use configuration” reset is published, the editor reports clean and idle, allowing section navigation to skip the save/discard question.
Location: qml/models/settingseditormodel.cpp:367 (head).
Details and suggested fix
editInput records an admitted edit in m_inputs, so dirty() and busy() cover the interval before worker publication. useConfiguration only posts its command and records no pending change. If the user resets an overridden setting and navigates to another section before the lane processes it, SettingsNavigationController::request immediately navigates because dirty() is false. The reset later appears in the shared editor and can be included in a save from that other section. Track admitted resets until their projection arrives, as ordinary inputs are tracked, and test navigation while the reset's lane is held.
[minor] · Activity's position hold undoes its final clamp
When the held position exceeds the settled content bounds, onContentYChanged restores the out-of-bounds value before the timer clears the hold.
Location: qml/pages/wallet/ActivityListPage.qml:383 (head).
Details and suggested fix
holdPositionTimer calls restorePosition(true) while heldContentY is still set. Assigning the bounded target to contentY synchronously invokes restorePosition(false), which writes the original, unbounded held value back. The timer then clears the hold without correcting that value. For example, a confirmation that removes the Pending header can leave a list near its old bottom overscrolled until another fixup or user scroll. Compute the bounded target, clear the hold, and then assign contentY. Add a test where regrouping shrinks content while the list is at its previous bottom.
[minor] · The thread refactor removes the macOS stack safeguard
Default-stack std::thread replacements remove the documented macOS protection for deep Core startup stacks; a resulting crash at head has not been demonstrated.
Location: qml/executor.cpp:26 (head).
Details and suggested fix
Base BackendExecutor explicitly gave macOS workers an 8 MiB stack because Core startup could exceed the platform's small worker stack, particularly under sanitizers. QmlInitExecutor used those workers for initialization and shutdown. The replacement Worker and initialization thread use plain std::thread without preserving that size. This is primarily a macOS debug/sanitizer safeguard concern, not evidence that release builds fail; pinned Bitcoin-Qt also uses a default-stack initialization thread. Preserve the explicit 8 MiB stack through a shared macOS thread helper, or establish why the previous requirement no longer applies.
Optional improvements
[suggestion] · New import failures cannot be translated
Payment and PSBT import errors use QStringLiteral and reach the Send status unchanged, leaving these recoverable errors unavailable to translators.
Location: qml/paymentimport.cpp:97 (head).
Details and suggested fix
ReadSource constructs errors such as “The import path is invalid”, “The source is not a supported payment request or PSBT”, and “The PSBT is malformed” through Invalid(QStringLiteral(...)). Invalid stores the string directly, and SendImportModel::status() exposes the operation's error without translation. Use QCoreApplication::translate with an explicit context for these user-facing messages, or carry typed errors and translate them at the presentation boundary.
[suggestion] · Speed Up does not apply Send's reuse-avoidance policy
Speed Up can add a dirty coin that Send now excludes on an avoid_reuse wallet; this behavior is pre-existing and matches pinned Core's bumpfee RPC.
Location: qml/walletbump.cpp:106 (head).
Details and suggested fix
walletbump::Prepare leaves m_avoid_address_reuse false on its coin control. Core's replacement builder permits additional confirmed inputs, and AvailableCoins permits used addresses when that control flag is false. A replacement needing another input can therefore select a coin excluded by the app's new Send policy. Set control.m_avoid_address_reuse = true, matching ApplyInputPolicy, while retaining the required original inputs. Add a replacement test with dirty and clean candidates for the additional input.
[suggestion] · PSBT file-import automation bypasses the production import route
Several integration and functional PSBT journeys use the hidden SendDraftController import route instead of the captured ImportOperation used by the real file chooser.
Location: qml/pages/wallet/SendCreate.qml:67 (head).
Details and suggested fix
When psbtImportPathField is nonempty, the menu calls requestPsbtImport, which invokes draftController.importPsbt. The production branch instead captures an import operation and passes the chosen file to sendPage.imports.chooseFile, exercising the payment-import reader and its ownership/review flow. Both the inspected structural-invalidity integration case and the signed-PSBT functional journey use the hidden branch, so their assertions do not cover that production ingress. Inject the selected file into the captured operation's chooseFile continuation rather than maintaining a separate test-only import route.
[suggestion] · Security-fix commit messages precede their enforcement
The signer and fee helper commits claim enforcement that arrives in later extraction commits, obscuring where each fix can be validated; head includes the checks.
Location: qml/models/signertransaction.cpp:9 at a38d5d217764 (commit) (commit).
Details and suggested fix
a38d5d2177645f039bc1bdf90dfcf2f9f6b14b90 adds the unsigned-transaction comparison helper, and 7f71f0e4f584a6e727f4a5735fa6e9c3a332db90 adds fee-authentication helpers and tests. Their messages nevertheless claim rejection/authentication fixes. The application wiring arrives in b753f5326c25353e0660cd534d1150a95d6c8fd1 for Send and 3d8d80f543bb705d0709b1162d826ee4c4837c2d for PSBT/replacement work; the latter's Inspect performs both transaction and fee checks. Retitle the first two commits as helper additions and place the fix claims on the commits that enforce them. This preserves the area-owned file boundaries while making the security changes easier to validate.
[suggestion] · Startup error handling is split across unrelated area commits
The series removes in-window startup-error handling in infrastructure and restores it only in navigation, making the startup rewrite harder to validate; this is not a head defect.
Location: qml/psbtwork.cpp:192 at 3d8d80f543bb (commit) (commit).
Details and suggested fix
StartupErrorInWindow exists in dependency parent c796732b19af76026c230ed4fe4fa68e7023a38d, is deleted by infrastructure commit 244be272b37774ce840ba0c9b0371a85dfabfc63, and is still absent from startup/onboarding commit 4b74c82262d67a283780c08bce494cd62213fa32. Navigation/console commit 77516f6c05326394ff52a239fc52fd13a7772dd1 restores it with a QString summary and without the former qCritical call. Although assigning shared files to owning areas explains the series layout, it separates this startup behavior from the commit where readers need to assess it. Keep the helper through infrastructure and move its adaptation into the startup commit alongside its callers, rather than making reviewers reconstruct the removal and restoration across unrelated areas.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Retained secret
QStringstorage is released without cleansing (earlier report) - [suggestion]: Private descriptor imports remain outside console redaction (earlier report)
- [minor]: New-password normalization disagrees with unlock input (earlier report)
- [minor]: A stale fee-policy failure can clear a newer read's pending state (earlier report)
- [minor]: The console labels implicit wallet RPCs as node commands (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
Moving wallet work off the GUI thread addresses both lock contention and expensive model population, not merely slow wallet-file loading. Earlier GUI work moved transaction preprocessing to the notification side to avoid acquiring cs_main/cs_wallet in the GUI thread. Later wallet-loading work identified address and transaction prefetch during model construction as a substantial startup cost. An activity object was defended as useful when asynchronous work also needs progress, interruption, and follow-up interaction.
This explains the motivation for the shared executor and background readers in the affected QML application. It also distinguishes backend responsiveness from the remaining cost of creating and updating Qt objects: moving an initial wallet-load call alone does not eliminate expensive history population or GUI-thread lock acquisition.
Source 1 · Source 2 · Source 3 · Source 4 · Source 5
The earlier executor proposal sought explicit outcomes and lifetime guarantees because 'run a closure, maybe call back' left each model to reconstruct cancellation, pending-state cleanup, result identity, and shutdown draining. Its proposal distinguished skipping queued work from discarding a running result and required borrowed objects to survive until drain.
The current operation-owned architecture follows this historical concern, although it does not adopt every proposed API. In particular, the head's OwnedWork separates accepted effects and native cleanup from GUI publication: closing an observer can discard presentation without implying that an already accepted backend effect was undone. That distinction explains why page cancellation and shutdown draining are separate responsibilities.
Per-wallet views were introduced to prevent an open menu, dialog, or confirmation from silently changing its wallet target. The earlier design explicitly preferred structural wallet ownership over requiring every popup to opt into a context-token guard. Its acknowledged tradeoff was additional retained-view memory in exchange for stable per-wallet drafts, navigation, and future side-by-side presentation.
This is direct historical rationale for the current rule that a wallet page receives one wallet for its entire lifetime. The earlier proposal also explicitly identified replacement within the same wallet and completion screens as cases that per-wallet views alone cannot solve, explaining why the refactor adds separately owned operations and transaction reviews rather than relying only on wallet selection.
A displayed transaction fee requires authenticated input amounts: a spending transaction identifies previous outputs but does not itself contain their authoritative values. Historical hardware-wallet discussions expose the tradeoff between verifying full previous transactions and keeping PSBTs small. Core added non_witness_utxo alongside witness_utxo for compatibility with changed hardware-wallet requirements while deliberately continuing to permit witness_utxo-only SegWit signing.
The base QML import path takes its known-fee decision from node::AnalyzePSBT. The pinned analyzer totals values obtained from PSBT input data. The head introduces a distinct fee proof based on hash-matching previous transactions or independently verified outputs and ties that proof to the reviewed transaction. The history explains why 'enough metadata to sign or analyze' and 'authenticated fee suitable for confirmation' are different contracts, without implying that every signer must require the largest PSBT representation.
Source 1 · Source 2 · Source 3 · Source 4
The external-signer hardening proposal treats a signer response as additional signing information for an approved PSBT, rather than authority to redefine its transaction. It proposes merging responses to reject dropped or altered outputs while allowing omission of unnecessary metadata, and separate restrictions on unsafe sighash types and finalized inputs. It explicitly does not promise full protection from a malicious HWI-equivalent process running as the same user.
The unchanged pinned Core implementation decodes the signer's response and assigns it to the supplied PSBT. The base QML approval path then finalizes that returned document. The head adds unsigned-transaction comparison and inspection/export checks. This history explains the confirmation-preservation boundary and its limited adversarial scope; it does not establish that the application has adopted all upstream hardening measures.
PSBT export version is an interoperability policy, not simply a choice to use the newest representation. The historical report describes GUI-created v2 files failing on pre-v32 Core installations and disrupting existing cosigning workflows. The ensuing GUI proposal chose v0 exports; a version-selection checkbox was dropped to simplify backporting past string freeze. The inspected follow-up separately retained v2 for external signers.
The head's ExportReview creates new file-export documents as v0 but preserves the version of an imported document. The historical distinction explains why file export can favor broad compatibility without requiring every internal or external-signer PSBT path to use the same version. It also explains the translation and backport cost behind avoiding an additional GUI choice.
Source 1 · Source 2 · Source 3 · Source 4 · Source 5
Console-secret filtering historically balanced privacy, maintainability, and predictable history recall. Participants objected that masking selected arguments was brittle, but also noted that removing a command entirely could make Up-Enter unexpectedly execute an older command. The discussion identified nested commands and echoed request text as additional exposure paths; a later update reported replacing all parameters of encountered sensitive commands with a placeholder and adding nested-command tests.
This is the relevant historical context for the PR's transient command plans and removal of retained secrets. It explains why history, displayed requests, and nested parsing are separate surfaces, and why preserving a harmless indication that a command occurred can matter independently of retaining its executable arguments. The current console implementation was not read before the inspection limit, so this is rationale rather than a claim of implementation parity.
Source 1 · Source 2 · Source 3 · Source 4
Ralph's inferences
Stable wallet ownership and immutable review ownership address different dimensions of user intent. A page permanently bound to wallet A prevents retargeting to wallet B, but it does not by itself distinguish an older reviewed transaction from a newer draft in wallet A. Capturing the transaction, fee proof, and originating draft revision in a separate review provides that second boundary.
This interpretation connects the earlier per-wallet-view design's stated limits to the head's TransactionReview structure and its checks that metadata filling or export has not changed reviewed terms. It explains the role of revisioned ownership without treating the architecture description as proof that every execution path preserves it.