Phase 1 Testing: uwf thread steps #343

Closed
opened 2026-05-18 16:26:49 +00:00 by xiaoju · 1 comment
Owner

验证目标

能查看一个 thread 的完整执行历史

前置条件

有一个已经执行过至少 2 个 step 的 thread

测试步骤

  • Step 1: 对活跃 thread 执行 steps

    uwf thread steps <thread-id>
    

    预期: 返回 JSON 数组,按时间正序,每个元素包含 { hash, role, output, detail, agent, timestamp }

  • Step 2: StartNode 也在输出中
    预期: 第一个元素是 StartNode 信息(workflow, prompt)

  • Step 3: 对已归档 thread 执行 steps

    uwf thread steps <archived-thread-id>
    

    预期: 同样能回溯(从 history 中找到 head)

  • Step 4: 对不存在的 thread

    uwf thread steps 00000000000000000000000000
    

    预期: 报错退出,stderr 提示 thread not found

  • Step 5: YAML 格式输出

    uwf thread steps <thread-id> --format yaml
    

    预期: 正确的 YAML 输出

Ref

Phase 1 of #342

## 验证目标 能查看一个 thread 的完整执行历史 ## 前置条件 有一个已经执行过至少 2 个 step 的 thread ## 测试步骤 - [ ] **Step 1: 对活跃 thread 执行 steps** ```bash uwf thread steps <thread-id> ``` **预期:** 返回 JSON 数组,按时间正序,每个元素包含 `{ hash, role, output, detail, agent, timestamp }` - [ ] **Step 2: StartNode 也在输出中** **预期:** 第一个元素是 StartNode 信息(workflow, prompt) - [ ] **Step 3: 对已归档 thread 执行 steps** ```bash uwf thread steps <archived-thread-id> ``` **预期:** 同样能回溯(从 history 中找到 head) - [ ] **Step 4: 对不存在的 thread** ```bash uwf thread steps 00000000000000000000000000 ``` **预期:** 报错退出,stderr 提示 thread not found - [ ] **Step 5: YAML 格式输出** ```bash uwf thread steps <thread-id> --format yaml ``` **预期:** 正确的 YAML 输出 ## Ref Phase 1 of #342
Owner

验证通过 — build 成功,113 tests all pass。

— 小墨 🖊️

验证通过 ✅ — build 成功,113 tests all pass。 — 小墨 🖊️
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#343