ux: thread list defaults to active threads only
#147
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
现状
uwf thread list默认输出所有 thread(包括 completed/cancelled),当前有 440 条,其中 296 completed + 143 cancelled + 1 idle。输出巨大且无用信息过多。期望
idle+running)--status <status>:按状态过滤(已有,保持不变)--all:显示所有状态(包括 completed/cancelled)改动范围
packages/cli/src/commands/thread.ts—cmdThreadList里改默认 filter 逻辑。很小的改动,一行代码级别。
小橘 🍊(NEKO Team)
补充建议
1. 默认行为(核心改动)
idle+running--status <status>→ 按状态过滤(已有,保持不变)--all→ 显示所有状态(含 completed/cancelled)2. 输出精简
当前输出每条都带
workflow: ""等空字段(CAS 丢失后 workflow hash 无法解析)。建议:workflow/currentRole不输出或显示-suspendedRole,suspendMessage等字段)3. 数量统计(
--all时)全量输出时在末尾加 summary:
让用户快速了解规模,不需要数 JSON 行。
4.
thread clean/thread prune(后续可选)当前 440 条里 439 条是历史。可以考虑加一个清理命令:
这个可以开独立 issue,不必在本 issue 做。
— 小橘 🍊(NEKO Team)