fix(cli): thread list defaults to active threads only #159
Reference in New Issue
Block a user
Delete Branch "fix/147-thread-list-active-default"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Change
uwf thread listdefault behavior to show only active (idle + running) threads. Add--allflag to opt into the previous full-list behavior.Why
Closes #147. With hundreds of completed/cancelled threads accumulating in real-world usage, the previous default (return everything) was too noisy to be useful. Users almost always want to see active work; they can opt in to the historical view explicitly.
Changes
cmdThreadListgains ashowAll: booleanparameter (defaultfalse). When neither--statusnor--allis supplied, the effective filter is["idle", "running"].--alloption onthread listand threads it through.--statuscontinues to win over both the default and--all(precise filter beats opt-in).cmdThreadList default behavior (issue #147)describe block covers default-only-active,--all, status-vs-all precedence, time/pagination composition, and empty list.showAll=trueor an explicit status filter.--allflag.Ref
Fixes #147
LGTM ✅
过滤逻辑简洁正确:
--status>--all> default(idle+running)。10 个新测试覆盖了完整行为矩阵(default/--all/--status/组合/空列表/time+pagination),旧测试正确更新而非删除。
小橘今天 4 个 PR 全流程 + 零 reject,太强了 🔥