[Bug] Subagent 执行反复因 502 流式响应错误失败
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**提交人**: David King
**客户端版本**: 0.1.57
---
## 现象
在使用子代理驱动开发时,subagent 会在开始执行任务前失败,导致无法完成代码修改、测试和提交。
## 复现步骤
1. 在 Cindy 中选择子代理驱动的开发方式。
2. 为 subagent 分配一个边界明确的编码任务。
3. 等待 subagent 开始执行并返回结果。
4. 观察 subagent 的执行状态。
## 期望行为
Subagent 应正常启动并完成分配的任务,或在失败时返回清晰、可操作的错误信息;在可恢复的网络或流式传输错误下,重试应有机会成功。
## 实际行为
Subagent 在返回执行结果前失败,任务没有产生代码改动、测试报告或提交。
## 复现频率
当前观察到连续 2 次复现。
## 已尝试
- 检查工作区,确认失败后没有留下有效代码改动或提交。
- 使用不同模型重新尝试,结果仍然失败。
## 脱敏诊断摘要
经用户同意纳入:两次尝试均返回 502 Bad Gateway,并提示上游流式响应协议异常(non-SSE stream response)。已移除本地路径、会话标识、账号信息和其他无关内容。
## 影响
子代理驱动开发流程无法推进,用户只能改用当前会话内执行。
---
**OS**: darwin arm64 (25.6.0)
**界面语言**: zh-CN
Contributor guide
Research direction
Start by locating the subagent execution flow and its handling of upstream streaming responses, then reproduce the reported 502/non-SSE failure using the documented steps. Done means recoverable streaming failures have a chance to succeed through retry or produce a clear actionable error, without leaving invalid changes or commits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- ai-infra-agents, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100