Bug: 子代理(subagent / subagent_fork)在后台运行时全部 silent-fail,怀疑认证状态未继承 #1136
xianyu-sheng
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
环境
http://127.0.0.1:3080)subagent(非 fork)和subagent_fork均有此问题现象
父代理一次派发 4 个后台子代理,各自执行独立的代码审计任务(需要
read文件 + LLM 推理分析):Background subagent <id> failed before it finished. It left no closing message.list_agents显示 4 个子代理均为[ready]状态(resumable 但未完成)推测(未证实)
最可能的根因是子代理未能继承父代理的 LLM 认证配置(API Key / provider 设置),导致无法调用模型后静默退出。但也可能是其他原因(上下文窗口限制、超时、沙箱/权限问题)。
复现(简化版)
父代理中执行:
同样 silent-fail 且无 closing message。
期望行为
影响
subagent是 Harness 的核心并发工具。当前状态下,任何需要子代理独立调用 LLM 的场景都无法使用,包括但不限于:补充信息
send_message向子代理发送消息可以成功投递,但子代理仍无法正常工作感谢!
All reactions