feat(cli-uwf): thread read 显示 Content + 新增 thread step-details 命令 #357

Closed
opened 2026-05-19 06:37:29 +00:00 by xiaoju · 0 comments
Owner

背景

agent 现在输出 frontmatter markdown,有 meta(Output)和 body(Content)两部分。但 uwf thread read 只显示 Output(meta yaml),丢失了 agent 的实际工作内容。

需要做的事

1. thread read 增加 Content 区块

每个 step 展示两个区块:

  • ### Content — agent 的 markdown body
  • ### Output — meta yaml(现有的)

顺序:Content 在前,Output 在后。

2. 移除 --detail flag

当前 thread read --detail 可读性差,移除此参数。

3. 新增 thread step-details 命令

uwf thread step-details <step-hash>

专门查看某个 step 的完整 detail(session turns、tool calls 等)。调试用,完整即可。

参考

  • packages/cli-uwf/src/commands/thread.tsformatThreadReadMarkdown
  • detail 节点结构:uwf cas get <detail-hash>
## 背景 agent 现在输出 frontmatter markdown,有 meta(Output)和 body(Content)两部分。但 `uwf thread read` 只显示 Output(meta yaml),丢失了 agent 的实际工作内容。 ## 需要做的事 ### 1. thread read 增加 Content 区块 每个 step 展示两个区块: - `### Content` — agent 的 markdown body - `### Output` — meta yaml(现有的) 顺序:Content 在前,Output 在后。 ### 2. 移除 --detail flag 当前 `thread read --detail` 可读性差,移除此参数。 ### 3. 新增 thread step-details 命令 ``` uwf thread step-details <step-hash> ``` 专门查看某个 step 的完整 detail(session turns、tool calls 等)。调试用,完整即可。 ## 参考 - `packages/cli-uwf/src/commands/thread.ts` — `formatThreadReadMarkdown` - detail 节点结构:`uwf cas get <detail-hash>`
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#357