fix(workboard): hide archived cards in CLI list by default#94562
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 23, 2026, 6:54 PM ET / 22:54 UTC. Summary PR surface: Source +14, Tests +34, Docs +5. Total +53 across 3 files. Reproducibility: yes. source-reproducible. Current main and v2026.6.9 show terminal Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land one canonical JSON-preserving Workboard CLI fix after maintainers accept the compact text output compatibility change; this PR is a strong current candidate because it preserves the store and JSON contracts. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible. Current main and v2026.6.9 show terminal Is this the best way to solve the issue? Yes. Filtering only compact text output at the CLI presentation boundary fixes the inconsistent user-visible list while preserving AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b08d901dd2fc. Label changesLabel justifications:
Evidence reviewedPR surface: Source +14, Tests +34, Docs +5. Total +53 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Dependency graph guard clearedThis PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh
|
The `openclaw workboard list` CLI printed soft-archived cards, while the `workboard_list` agent tool and the `/workboard list` command both hide cards with `metadata.archivedAt` set unless archives are requested. Users who archived cards still saw them in CLI output and assumed archive failed. Filter archived cards by default in the CLI list handler and add an `--include-archived` flag mirroring the tool's `includeArchived` option, so all three list surfaces share one default. Docs updated to match. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Merged via squash.
|
Summary
openclaw workboard listoutput so soft-archived Workboard cards are hidden by default.openclaw workboard list --include-archivedto show archived cards in compact text output.openclaw workboard list --jsonfull-card output, including archived cards, for existing automation.Linked context
Fixes #94555
Changed surface
extensions/workboard/src/cli.tsfilters archived cards only for compact text output unless--include-archivedis set.extensions/workboard/src/cli.test.tscovers text default,--include-archived, and JSON compatibility.docs/cli/workboard.mddocuments the text-output default and JSON compatibility behavior.Real behavior proof
openclaw workboard listoutput printed archived cards, making archive operations look ineffective.OPENCLAW_HOMESQLite state dir.extensions/workboard/src/cli.tslisted all store cards and only filtered by status;extensions/workboard/src/command.tsalready hides archived cards for/workboard list.WorkboardStore.listremains the full-card store boundary.openclaw workboard listCLI does not filter archived cards (CLI/API inconsistency) #94555 includes current-release reproduction where default terminal list still printed a card afterarchived_atwas set, and source inspection of currentupstream/mainshows the CLI list path has no archived-card filter.Terminal output from the real
pnpm openclawcommands above:--include-archivedshows it. Default--jsonstill includes the archived card, so scripts that consume the full card list keep their shipped behavior.archived_atupdate to create the same persisted state described in Bug:openclaw workboard listCLI does not filter archived cards (CLI/API inconsistency) #94555; the observed list behavior was exercised through the realpnpm openclaw workboardCLI.Tests and validation
pnpm docs:listnode scripts/run-vitest.mjs extensions/workboard/src/cli.test.tspnpm exec oxfmt --check extensions/workboard/src/cli.ts extensions/workboard/src/cli.test.ts docs/cli/workboard.mdgit diff --checkRisk checklist
Did user-visible behavior change?
YesDid config, environment, or migration behavior change?
NoDid security, auth, secrets, network, or tool execution behavior change?
NoHighest-risk area: Workboard CLI output compatibility.
How is that risk mitigated? The patch changes only compact text output by default;
--include-archivedrestores archived text rows, and--jsonkeeps the full-card output for existing automation.Current review state: maintainer review and CI.
AI-assisted (Claude). Proof above was run manually.