fix(workboard): hide archived cards from CLI list by default, matching API tool behavior#94617
fix(workboard): hide archived cards from CLI list by default, matching API tool behavior#94617sunlit-deng wants to merge 1 commit into
Conversation
…g API tool behavior
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: this PR targets the same Workboard CLI archived-card bug as the canonical open PR, but it narrows default JSON output and lacks the canonical PR's real CLI proof, tests, and docs. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Use #94562 as the canonical JSON-preserving Workboard CLI fix, then close duplicate same-root PRs after the selected path lands or is rejected. So I’m closing this here and keeping the remaining discussion on #94562. Review detailsBest possible solution: Use #94562 as the canonical JSON-preserving Workboard CLI fix, then close duplicate same-root PRs after the selected path lands or is rejected. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows current main and Is this the best way to solve the issue? No for this branch as the landing path. The CLI boundary is right, but the canonical PR is safer because it preserves default JSON output, includes focused tests/docs, and supplies real CLI-output proof. Security review: Security review cleared: No concrete security or supply-chain concern was found; the diff only changes Workboard CLI option and filtering logic. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against a1828110704f. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
Fix CLI/API inconsistency:
openclaw workboard listnow hides archived cards by default,matching the behavior of the
workboard_listMCP tool / API. A new--include-archivedflaglets users opt into seeing archived cards.
Before
After
Changes
Single file:
extensions/workboard/src/cli.ts--include-archivedoption toworkboard listcommand (default: false)--include-archivedis not set, filter out cards wheremetadata.archivedAtis set--statusbehaviorReal behavior proof (required for external PRs)
Behavior addressed: Fix for issue #94555:
openclaw workboard listCLI does not filter archived cards (CLI/API inconsistency)Real setup tested:
Exact steps or command run after fix:
Evidence after fix:
Specific CLI tests (4 passed):
Source-level proof — identity of CLI and API filter logic:
CLI (
extensions/workboard/src/cli.ts:138-143):API (
extensions/workboard/src/tools.ts:256-257):Both now use the identical predicate
!card.metadata?.archivedAtwhen archived cards are not requested.The only difference is the default for the flag (
falsein CLI,undefined/falsein API),which produces the same effective behavior.
Observed result after the fix: The
openclaw workboard listCLI now defaults to hidingarchived cards, matching the API tool's behavior. Users who rely on
--jsonoutput willalso see archived cards excluded by default. The
--include-archivedflag restores theprevious behavior of showing all cards.
What was not tested: End-to-end CLI invocation via
pnpm openclaw workboard listagainsta live Gateway with archived cards, due to dependency resolution issues in the worktree build
(separate issue:
@pierre/diffsand@shikijs/langs/*unavailable). The store-level filteringlogic is thoroughly covered by the existing unit test suite.
Risk checklist
--include-archivedis passed--jsonflag continues to work with the new filterCurrent review state
What is the next action?
What is still waiting on author, maintainer, CI, or external proof?
Which bot or reviewer comments were addressed?