Repository navigation
fix(cli): report accurate filtered node totals - #119744
Conversation
|
Land-ready proof for exact head Root cause: Canonical fix: the existing merged Proof:
Known proof gaps: none. A terminal/Commander boundary test is the real behavior surface for this display-only summary correction; no chat, external provider, or operator Gateway is involved. |
|
Merged via squash.
|
…cope * origin/main: perf(agents): isolate concurrency benchmark workers (openclaw#119749) fix(diagnostics): preserve OTEL startup failure (openclaw#119747) fix(agents): seed fresh session identity before transcript append (openclaw#119473) fix: steering reaches active runs across agent harnesses (openclaw#119594) fix(cli): report accurate filtered node totals (openclaw#119744) fix(skills): keep installed verdicts scoped to publisher (openclaw#119672) fix(diagnostics): honor signal-specific OTLP protocols (openclaw#119708)
Closes #119743
What Problem This Solves
Fixes an issue where operators using a filtered
openclaw nodes listcould see an impossible inventory summary such asPaired: 2 (of 1)when the effective node catalog contributed a paired row that was absent from the raw pairing-store response.Why This Change Was Made
The CLI already filters and renders the merged effective paired-node rows, but its summary denominator still used the pre-merge pairing-store count. The fix makes the denominator use the same merged row owner as filtering and rendering. Pairing-scope fallback, older-Gateway compatibility, merge policy, filters, rows, and JSON output are unchanged.
The mismatch traces to the nodes list/status alignment work in #72619; its review identified this denominator case, but the landed code retained the stale raw count.
User Impact
Filtered node inventory output now reports internally consistent totals. Operators can trust the summary to describe the same nodes shown in the table, including legacy/device-paired catalog rows.
Evidence
tbx_01kz9wsvj8eg52pq6tv37b0178, run 31048237291. The full CLI program renderedPending: 0 · Paired: 2 (of 1)above two paired rows.pnpm test src/cli/program.nodes-basic.e2e.test.ts— 29/29 passing.core, coreTestslanes green, including both typechecks, changed-file format/lint, import cycles, SDK/plugin contracts, dead exports, and storage/schema guards.de68789cbb3ec4ac9eafa513d92b8e421e52a1a1.Risk is low: this changes only the text summary denominator after the existing merge/filter decision and is covered through the full CLI registration path.