makecindy / makecindy/cindy

原生子 Agent 在 Terra/Sol 多个推理档位下均因响应流中断而失败

Open
#1,769 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
401
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: @赵亦明
**客户端版本**: 0.1.30

---

## 现象

使用原生 `spawn_agent` 创建子 Agent 时,子 Agent 能被成功创建,但尚未返回任何有效内容就结束,统一报错:

```text
stream disconnected before completion: stream closed before response.completed
```

问题不仅出现在包含技能读取和数据查询的任务中,也能通过“不调用任何工具、只回复固定字符串”的最小任务稳定复现,因此不像是具体业务任务、SQL 或工具调用导致。

本次共测试 9 个子 Agent 回合,全部失败:

- `gpt-5.6-terra high`:6 个回合,涉及 5 个子 Agent。
- 完整的火炬 DAU 查询任务。
- 同一 Agent 的精简重试。
- 新 Agent 重试。
- 国内与海外查询拆分。
- 不调用工具、只回复 `TERRA_HIGH_OK` 的最小存活测试。
- `gpt-5.6-sol high`:只回复 `SOL_HIGH_OK`,失败。
- `gpt-5.6-sol xhigh`:只回复 `SOL_XHIGH_OK`,失败。
- `gpt-5.6-sol max`:只回复 `SOL_MAX_OK`,失败。

各次调用均使用 `fork_turns: "none"` 并显式指定模型与推理档位。模型参数能通过校验,子 Agent 也能生成任务 ID,错误发生在等待响应完成的阶段。

## 复现步骤

1. 在 Cindy 中启动一个原生子 Agent,指定:
- model:`gpt-5.6-terra`
- reasoning_effort:`high`
- fork_turns:`none`
2. 给子 Agent 一个不依赖上下文、不调用工具的任务,例如:
```text
不要调用任何工具,只回复:TERRA_HIGH_OK
```
3. 等待子 Agent 返回。
4. 观察到子 Agent 未返回指定字符串,而是以 `stream disconnected before completion` 结束。
5. 将模型改为 `gpt-5.6-sol`,分别使用 `high`、`xhigh`、`max` 重复上述步骤,结果相同。

## 期望行为

受支持的子 Agent 模型和推理档位应能够正常完成最小任务并返回指定内容。若模型服务暂时不可用,也应返回可定位到模型、服务或连接阶段的明确错误,而不是所有模型统一表现为通用响应流中断。

## 实际行为

Terra 与 Sol 的多个推理档位都无法完成最小响应,所有测试均返回相同的流中断错误。当前表现会导致原生子 Agent 功能整体不可用,也无法从错误信息判断是模型服务、调度、连接还是响应转发环节发生故障。
---
**版本区域**: CN
**OS**: darwin arm64 (25.5.0)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

Start with the native spawn_agent response-stream handling and reproduce the minimal no-tool task using the listed Terra and Sol models and reasoning levels. Trace where response.completed is expected and verify that supported combinations either return the requested text or identify the model, service, or connection failure clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, backend-api-design
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.