Skip to content

fix(cli): report accurate filtered node totals - #119744

Merged
steipete merged 1 commit into
mainfrom
codex/autoqa-nodes-filter-count-20260805
Aug 5, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/autoqa-nodes-filter-count-20260805

Conversation

@steipete

@steipete steipete commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Closes #119743

What Problem This Solves

Fixes an issue where operators using a filtered openclaw nodes list could see an impossible inventory summary such as Paired: 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

  • Pre-fix reproduction: Blacksmith Testbox tbx_01kz9wsvj8eg52pq6tv37b0178, run 31048237291. The full CLI program rendered Pending: 0 · Paired: 2 (of 1) above two paired rows.
  • Focused fix: pnpm test src/cli/program.nodes-basic.e2e.test.ts — 29/29 passing.
  • Stress: the full 29-test CLI file passed 30/30 fresh-process iterations (870 assertions).
  • Sibling node CLI surface: 98/98 passing across basic/media/push Commander E2E, command coverage, plugin registration, pairing rendering, and approval transport timeout.
  • Hosted changed gate: complete core, coreTests lanes green, including both typechecks, changed-file format/lint, import cycles, SDK/plugin contracts, dead exports, and storage/schema guards.
  • Exact-head hosted CI: run 31049483734 green for de68789cbb3ec4ac9eafa513d92b8e421e52a1a1.
  • Exact-head ClawSweeper: run 31049593414 reports no findings, security cleared, and patch correct at 0.96. Its only rank-up move was completed exact-head checks.
  • AutoReview: clean, no accepted/actionable findings, correctness confidence 0.99.
  • Production LOC: +3 / -1. Tests: +33 / -0. No config/default/API/data-model changes.
  • Public model identifier audit: PASS; the diff contains no model identifiers.

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.

  • AI-assisted
  • I understand the code and verified the owner boundary
  • AutoReview completed with no actionable finding

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: XS labels Aug 5, 2026
@steipete
steipete marked this pull request as ready for review August 5, 2026 21:38
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 5, 2026
@steipete

steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head de68789cbb3ec4ac9eafa513d92b8e421e52a1a1.

Root cause: nodes list moved filtering and rendering to the merged effective paired-node inventory, but the summary suffix kept the pre-merge pairing-store denominator. A catalog-only paired row could therefore render Paired: 2 (of 1).

Canonical fix: the existing merged effectivePairedRows owner now also supplies the denominator. Pairing-scope fallback, older-Gateway compatibility, merge policy, filters, rows, JSON output, RPCs, and node state are unchanged. Production is +3/-1; tests +33/-0.

Proof:

  • Pre-fix Testbox tbx_01kz9wsvj8eg52pq6tv37b0178, run 31048237291, reproduced Pending: 0 · Paired: 2 (of 1) above two paired rows.
  • Focused full-CLI proof: 29/29.
  • Stress: 30/30 fresh-process iterations, 870 assertions.
  • Sibling node CLI surface: 98/98 across basic/media/push Commander E2E, command coverage, plugin registration, pairing rendering, and approval timeout.
  • Complete hosted core, coreTests changed gate green.
  • Exact-head CI: run 31049483734 green.
  • AutoReview: clean, no accepted/actionable findings, correctness confidence 0.99.
  • ClawSweeper exact review: run 31049593414 has no findings, security cleared, patch correct at 0.96. Its only rank-up move—green exact-head checks—is satisfied. The public placeholder did not update, so this records the exact artifact result.
  • Public model identifier gate: PASS; the diff contains no model identifiers.

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.

@steipete
steipete merged commit 97505b7 into main Aug 5, 2026
190 checks passed
@steipete
steipete deleted the codex/autoqa-nodes-filter-count-20260805 branch August 5, 2026 21:58
@steipete

steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to VACInc/openclaw that referenced this pull request Aug 5, 2026
…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)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI: filtered nodes list can show impossible paired totals

1 participant