fix(workboard): filter archived cards in CLI workboard list#95462
fix(workboard): filter archived cards in CLI workboard list#95462lzyyzznl wants to merge 1 commit into
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: this branch targets a real Workboard CLI bug, but it narrows default JSON output and an older proof-positive JSON-preserving PR is the safer canonical landing path. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Keep #94562 as the canonical JSON-preserving Workboard CLI fix, then close duplicate same-root PRs and the linked issue after the selected fix lands. So I’m closing this here and keeping the remaining discussion on #94562. Review detailsBest possible solution: Keep #94562 as the canonical JSON-preserving Workboard CLI fix, then close duplicate same-root PRs and the linked issue after the selected fix lands. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection of current main and v2026.6.9 shows terminal Is this the best way to solve the issue? No for this branch as the landing path. Filtering at the CLI presentation boundary is right, but this PR filters before JSON output and is superseded by a JSON-preserving candidate. Security review: Security review cleared: The diff only changes Workboard CLI filtering in one TypeScript file and adds no dependency, workflow, secret, install, package, or code-execution surface. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 108d6d7eca00. |
250d946 to
2474daa
Compare
- Add --include-archived flag to workboard list command matching the tool parameter - Default to hiding archived cards (align with workboard_list tool and /workboard list command) - Only one file changed: extensions/workboard/src/cli.ts Fixes openclaw#94555
2474daa to
9d7979c
Compare
|
Closing this PR as it is superseded by #94562 (which is already at |
Summary
openclaw workboard listwas the only workboard entry point that did not filter archived cards. Theworkboard_listtool and/workboard listslash command both hide cards withmetadata.archivedAtset by default. This caused users to believe the archive operation had failed when cards persisted in CLI output.The fix adds a
--include-archivedflag (matching the tool parameter name) and defaults to hiding archived cards, consistent with the other two entry points. Users who rely on seeing all cards can use--include-archivedto restore the previous behavior.Fixes #94555
Real behavior proof
Behavior addressed: CLI
workboard listnow hides archived cards by default, aligning with theworkboard_listtool and/workboard listslash command. A--include-archivedflag is added to show archived cards when needed.Real environment tested: Linux 6.8.0-124-generic (x86_64) / Node.js v25.9.0
Exact steps or command run after this patch:
After-fix evidence:
The git diff confirms only
extensions/workboard/src/cli.tswas changed:All 107 workboard tests pass with zero regressions:
Observed result after the fix: Tests pass 107/107 (8 test files). Only
extensions/workboard/src/cli.tswas modified — no lockfile changes, no unrelated files. The--include-archivedflag provides backward compatibility for users who need the old behavior.What was not tested: Real-world archive/create/list workflow end-to-end with a running gateway. The test suite covers the filter behavior via unit tests. The change is purely additive — adding a filter that is already proven in production by the
workboard_listtool and/workboard listcommand.Tests and validation
Full test suite
CLI-specific tests
Lockfile check
No lockfile changes —
pnpm-lock.yamlis untouched.Risk checklist
--include-archivedflag for users who need the old "show all" behavior. Existing flags (--json,--board,--status) are unchanged.includeArchivedparameter pattern is already proven in production by theworkboard_listtool.workboard list --help.--include-archivedflag provides a seamless path to restore the previous behavior for automation scripts.Current review state