feat: show Open for pending bugs and accept --status open
Closed
TJ
24d ago+76+76+01234567890123456789-18-18-01234567890123456789
Why
The updated docs (docs.detail.dev) call unresolved bugs Open, but the CLI showed "Pending" and only accepted --status pending.
What
- Human output labels the
pendingreview state as Open (review_state_label). JSON output is unchanged and keeps the raw API value"pending". detail bugs list --statusacceptsopen(now the documented value and the default).pendingstill works as a hidden alias. Both parse toBugReviewState::Pending, so the CLI always sendsstatus=pendingand doesn't depend on the backend alias, which ships separately and may not be deployed yet.- Help text, the reopen message, and the close-state rejection message say "open".
docs/HELP.mdis regenerated withcargo xtask generate-help. - Unit tests cover the open→pending parse, serialization to
"pending", the label, and CLI parsing of--status openand--status pending.
Notes:
bugs listhas no status column, so the "Open" label shows up inbugs show(theCloserow for a reopened bug) and anywhere elsereview_state_labelis used.- Vulns are intentionally unchanged. The vulns CLI docs still use
pendingthroughout. The app's Vulns filter says "Open", so we could align vulns in a follow-up if we want consistency.
Validation
cargo fmt --check: cleancargo clippy -- -D warnings: pass.--all-targetshas an unrelated existing failure incompletions.rs:59, which CI doesn't run.cargo test: 375 lib + 18 integration + 2 skills tests passcargo xtask check: openapi.json and docs/HELP.md up to date- Against prod (read-only), comparing a binary built from main with this branch:
bugs list detail --status open: before,invalid value 'open'. After, the same 313 bugs as--status pending.bugs show <reopened bug>:Close Pendingbefore,Close Openafter.--format jsonstill shows"state": "pending".
🤖 Generated with Claude Code