LoopForge
LoopForge copied to clipboard
[Bug]: Agent CLI 提交 submit_gate_result 后不退出时,LOOP 运行永久卡死;缺少提交后看门狗与执行超时
Component / host
Platform — runner / sandbox
Edition
Platform
LoopForge version
0.4.3
What happened?
环境:LoopForge main(本机原生部署,generic-native 沙箱),opencode CLI 2.4.2,模型 deepseek-v4.1-flash(OpenCode Go 网关) 复现步骤:
- 运行包含 agent 节点的 LOOP(节点xxx)
- Agent 完成产物写入并调用 submit_gate_result
- 但 CLI 进程不退出(MCP stdio/关停挂起) 实际:
- 节点状态长期 running,activity=模型正在生成输出,CPU ~0.1%,epoll_wait
- 41 分钟内日志无新增;平台无超时、无告警
- 手动 kill -TERM 进程组后,引擎立即读取 submit 结果、执行门禁,节点变为 succeeded 预期:
- 提交终态后 CLI 若未退出,应在短暂宽限后终止并按提交结果结算
- 未提交且长时间无进展时应超时失败,而不是无限等待 建议修复:同上面的看门狗 + AGENTFLOW_AGENT_TIMEOUT 方案;另外建议评估「失败节点 + 活跃兄弟节点」时 run 的结算逻辑(本次 agent-fe-review 失败后 run 仍长期 running)。
Reproduction
- 运行包含 agent 节点的 LOOP(节点xxx)
- Agent 完成产物写入并调用 submit_gate_result
- 但 CLI 进程不退出(MCP stdio/关停挂起)
Sanitized diagnostics
Safety checks
- [x] I removed credentials, private endpoints, internal identifiers, and personal data.
- [x] I searched existing issues for duplicates.
感谢反馈。
我理解的情况是:Agent 调用 submit_gate_result 之后,如果 CLI 进程没有退出,对应 LOOP 节点会一直停在 running,平台侧也没有超时或看门狗按已提交结果结算。
已经看到这条 Issue,会按现有 Issue 排期查看。