baa-conductor


baa-conductor / bugs / archive
codex@macbookpro  ·  2026-04-01

OPT-002-executor-timeout.md

 1# OPT-002: executor 缺少超时保护
 2
 3> 提交者:Claude(代码审查)
 4> 日期:2026-03-27
 5> 状态:已完成,已合入 `main@889f746`
 6
 7## 文件
 8
 9`apps/conductor-daemon/src/instructions/executor.ts`
10
11## 现状
12
13executeBaaInstruction() 直接调 handleConductorHttpRequest 无超时。如果 exec 命令卡住(死循环 shell 脚本),整个 instruction pipeline 无限阻塞。
14
15## 建议
16
17加 Promise.race 超时(默认 30s,exec 可配 60s)。或在 handleConductorHttpRequest 调用时传 AbortController。
18
19## 完成情况
20
21- 已为 conductor 执行链路补统一超时保护
22- renewal dispatcher 和 browser proxy 相关执行路径已接入超时与明确错误传播
23- 验证:`pnpm -C apps/conductor-daemon test`