3 minor findings · 2 suggestions
Earlier concerns neither republished nor resolved: 2 suggestions. See the Run archive for their assessments.
Findings
[minor] · Peer and unban failures are discarded when the initiating view is hidden
Hiding the initiating page or Banned peers popup before an accepted asynchronous action fails discards its failure feedback, with no message on return.
Location: qml/pages/node/PeerDetails.qml:131 (head).
Details and suggested fix
Navigating away clears submittedPeerAction, and closing the banned-peers popup clears awaitingUnban. The completion handlers then ignore a later failed ban, disconnect or unban. Although the models retain peerActionError and actionError, the status lines show only pending state and refresh errors, so reopening does not explain the failure. The tests intentionally prevent stale modals, but no other feedback replaces them. The practical failure set is narrow in the pinned in-process backend: disconnect can fail after the peer leaves, while ban/unban normally return false only without banman, apart from exceptions. Refreshed lists eventually reflect the state without explaining what happened. Keep stale-modal suppression, but retain the failed result with its original target and show it non-modally or when the initiating view returns.
[minor] · Banned peers popup shows "No banned peers" before the first asynchronous load
Opening the popup before its first post-initialization ban-list read completes enables the "No banned peers" message without a loading indication.
Location: qml/components/BannedPeersPopup.qml:154 (head).
Details and suggested fix
backendInitialized() now queues getBanned() on the worker, leaving the initially empty model unchanged until completion. During that interval, actionPending is false and refreshError is empty, so banListStatus stays hidden while the zero-count empty state says "No banned peers". This can occur when the backend read is slow or waits behind shared-executor work. The same empty state existed before backend initialization, but this PR adds the asynchronous post-initialization window. Use the exposed ready and refreshPending properties to show loading status, and require ready && count === 0 before showing the empty-state message. Add matching properties to the QML mock.
[minor] · Rejected peer-command submission leaves peerActionPending latched
If the shared executor stops while NodeModel still accepts actions, rejected ban or disconnect submissions leave pending state latched; no current production caller producing this condition was found.
Location: qml/models/nodemodel.cpp:920 (head).
Details and suggested fix
Both peer-action methods set m_peer_action_pending and emit its notification before returning m_commands->submit() directly. A stopped executor returns false without scheduling a completion, so finishPeerAction() never clears the flag. The application connection also sets BanListModel's external pending flag, leaving peer actions and Unban disabled. The API permits this condition because BanListModel receives NodeModel's shared executor and unconditionally shuts it down in beginShutdown() and its destructor. Normal coordinated shutdown sets NodeModel's shutdown guard first, so production impact remains unconfirmed. Check the submission result in both methods and, on rejection, restore pending/error state and complete the external-action bookkeeping, as the normal completion path does.
Optional improvements
[suggestion] · Visible Node information popup rebuilds all row delegates on each delivered update
Each visible nodeInformationChanged replaces the array model and recreates all 15 row delegates, adding avoidable GUI-thread work; no slowdown has been measured.
Location: qml/components/NodeInformationPopup.qml:29 (head).
Details and suggested fix
The new Connections handler calls nodeInformationRows() and replaces the Repeater's plain-array model whenever a node-information signal arrives while the popup is visible. This reformats the rows and recreates every ColumnLayout, KeyValueRow, text item and separator. Block and header deliveries during IBD can repeatedly take this path; the notification mailbox combines outstanding callbacks but provides no time-based update limit. Use the existing PeerDetails pattern, model: root.rows.length with a delegate binding to root.rows[index], to retain delegates when the count is unchanged. Keep the live value bindings so asynchronous results still replace the initial "Unknown" values. This recommends removing unnecessary work, not fixing an observed stall.
[suggestion] · Console stop regression test bypasses the production shutdown wiring
The console stop test connects directly to the lifecycle executor, so it cannot catch regressions in the production NodeModel/coordinator route or its before-interrupt drain.
Location: test/test_rpcconsolemodel.cpp:310 (head).
Details and suggested fix
stopUsesIndependentControlWhileExecuting() connects shutdownRequested directly to QmlInitExecutor::interrupt(). Production instead routes it through NodeModel::requestShutdown() and QmlShutdownCoordinator, which waits for OptionsQmlModel before interrupting. Removing the production console connection would therefore leave this test passing. Separate coordinator tests cover participant ordering, but not this combined blocked-RPC path. The current stopExecuted/offGui/stopUsedRpc assertions prove that interruption ran off the GUI thread. They do not prove it released an already blocked command: there is no worker-entry handshake, and the gate self-releases after five seconds, matching the default QTRY timeout. Add a regression test using the production model/coordinator route with a before-interrupt participant, wait for worker entry before submitting stop, and make the gate timeout longer than the assertion window.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Peer-action QML tests exercise duplicated application wiring (earlier report)
- [suggestion]: Onboarding startup still resolves settings synchronously before the worker read (earlier report)