simplify: thread fork only takes step-hash #346

Merged
xiaomo merged 1 commits from fix/342-fork-simplify into main 2026-05-18 16:43:33 +00:00
Owner

What

Remove thread-id argument from uwf thread fork.

Why

CAS 节点自包含,从 step-hash 就能回溯到 StartNode,不需要指定 thread-id。

Changes

  • cli.ts — fork 只接受 <step-hash> 一个参数
  • thread.ts — 删除链遍历验证,改为直接检查节点类型(StartNode/StepNode)
  • types.tsThreadForkOutput.forkedFrom 移除 thread 字段

Ref

Refs #342

## What Remove thread-id argument from `uwf thread fork`. ## Why CAS 节点自包含,从 step-hash 就能回溯到 StartNode,不需要指定 thread-id。 ## Changes - `cli.ts` — fork 只接受 `<step-hash>` 一个参数 - `thread.ts` — 删除链遍历验证,改为直接检查节点类型(StartNode/StepNode) - `types.ts` — `ThreadForkOutput.forkedFrom` 移除 `thread` 字段 ## Ref Refs #342
xiaoju added 1 commit 2026-05-18 16:39:11 +00:00
Remove thread-id argument — CAS node is self-contained, no need to
specify which thread it belongs to. Just verify the hash is a valid
StartNode or StepNode.

Refs #342
xiaomo approved these changes 2026-05-18 16:43:32 +00:00
xiaomo left a comment
Owner

LGTM CAS 天然可寻址,不需要 thread-id 验证归属,直接用 hash fork 就对了。

LGTM ✅ CAS 天然可寻址,不需要 thread-id 验证归属,直接用 hash fork 就对了。
xiaomo merged commit 1ed7e32067 into main 2026-05-18 16:43:33 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#346