0.3.0 回归:thread exec -c/--background 失败后无法续跑 #131

Open
opened 2026-06-06 01:44:03 +00:00 by xiaonuo · 0 comments
Owner

环境

  • uwf cli: 0.3.0
  • agent: uwf-hermes 0.1.3

复现步骤

场景 1:exec -c 超时后无法续跑

# 1. 创建 thread
uwf thread start debate.yaml -p "辩论开始"
# 返回 thread: 06F9MXV5TRZD82FPNCM3RH4230

# 2. 跑 10 步(可能需要几分钟)
uwf thread exec 06F9MXV5TRZD82FPNCM3RH4230 -c 10
# 跑了 4 步后超时(600s timeout)

# 3. 查看状态
uwf thread show 06F9MXV5TRZD82FPNCM3RH4230
# status: idle, currentRole: opponent

# 4. 尝试续跑
uwf thread exec 06F9MXV5TRZD82FPNCM3RH4230 -c 5
# 报错:thread not active: 06F9MXV5TRZD82FPNCM3RH4230

场景 2:--background 模式

uwf thread exec 06F9MXV5TRZD82FPNCM3RH4230 -c 10 --background
# 立即返回,但 thread 状态变成 idle

uwf thread exec 06F9MXV5TRZD82FPNCM3RH4230 -c 5
# 报错:thread not active

Workaround

不带 -c 的单步 exec 可以恢复:

uwf thread exec 06F9MXV5TRZD82FPNCM3RH4230
# 成功执行一步

期望行为

  1. exec -c N 超时或中断后,thread 应该可以被续跑
  2. --background 模式下 thread 应该保持 running 状态
  3. 不应该报 "thread not active" 错误

当前状态

Thread 06F9MXV5TRZD82FPNCM3RH4230 卡在 idle,无法续跑。6 轮辩论完成,但主持人总结步骤无法执行(也被 Issue #129 的 const 问题卡住了)。

## 环境 - uwf cli: 0.3.0 - agent: uwf-hermes 0.1.3 ## 复现步骤 ### 场景 1:exec -c 超时后无法续跑 ```bash # 1. 创建 thread uwf thread start debate.yaml -p "辩论开始" # 返回 thread: 06F9MXV5TRZD82FPNCM3RH4230 # 2. 跑 10 步(可能需要几分钟) uwf thread exec 06F9MXV5TRZD82FPNCM3RH4230 -c 10 # 跑了 4 步后超时(600s timeout) # 3. 查看状态 uwf thread show 06F9MXV5TRZD82FPNCM3RH4230 # status: idle, currentRole: opponent # 4. 尝试续跑 uwf thread exec 06F9MXV5TRZD82FPNCM3RH4230 -c 5 # 报错:thread not active: 06F9MXV5TRZD82FPNCM3RH4230 ``` ### 场景 2:--background 模式 ```bash uwf thread exec 06F9MXV5TRZD82FPNCM3RH4230 -c 10 --background # 立即返回,但 thread 状态变成 idle uwf thread exec 06F9MXV5TRZD82FPNCM3RH4230 -c 5 # 报错:thread not active ``` ### Workaround 不带 `-c` 的单步 exec 可以恢复: ```bash uwf thread exec 06F9MXV5TRZD82FPNCM3RH4230 # 成功执行一步 ``` ## 期望行为 1. `exec -c N` 超时或中断后,thread 应该可以被续跑 2. `--background` 模式下 thread 应该保持 running 状态 3. 不应该报 "thread not active" 错误 ## 当前状态 Thread `06F9MXV5TRZD82FPNCM3RH4230` 卡在 idle,无法续跑。6 轮辩论完成,但主持人总结步骤无法执行(也被 Issue #129 的 const 问题卡住了)。
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shazhou/united-workforce#131