[eval] uwf-eval run 执行阶段 thread not found — 0.3.0 兼容性问题 #134
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?
环境
@united-workforce/eval: 0.1.3@united-workforce/cli: 0.3.0@united-workforce/agent-hermes: 0.1.3复现
报错
分析
uwf-eval的 execute 阶段做了以下操作:mkdtemp创建临时目录/tmp/uwf-eval-xxxcp fixture/ → workDir复制 workflow 文件uwf thread start debate.yaml -p "..." --cwd /tmp/uwf-eval-xxx→ 成功创建 threaduwf thread exec <thread-id> --agent uwf-hermes -c 10→ 失败:thread not found关键代码(
packages/eval/src/runner/execute.ts):疑似根因
uwf thread start在--cwd /tmp/uwf-eval-xxx下创建了 thread,thread 元数据可能被写入了工作目录下的threads.yaml(而非全局~/.ocas/)。但
uwf thread exec调用的uwf-hermesadapter 无法找到该 thread —— 可能是 hermes adapter 没有在正确的 cwd 下查找threads.yaml,或者 0.3.0 的 thread 存储路径发生了变化。验证:手动执行相同命令
手动执行正常,说明问题可能出在
execFileSync的 cwd 传递或 hermes adapter 的启动上下文。建议
uwf thread start --cwd是否正确写入threads.yamluwf thread exec是否在runUwf的 cwd 下正确查找 threadUWF_HOME环境变量来隔离存储