makecindy / makecindy/cindy

项目 Codex Agent 在不同模型供应商下持续重连并自动中断

Open
#3,277 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.57

---

## 现象
在 Cindy 的项目中使用 Codex Agent 时,turn 无法正常完成,界面持续显示:`Codex app-server has been reconnecting for 120s without making progress; the turn was interrupted automatically.`

普通对话中的 GPT 使用正常,但项目里的 Codex Agent 不正常。将 Codex 切换到其他模型供应商后,问题仍然存在。

## 复现步骤
1. 在 Cindy 中打开一个项目。
2. 选择 Codex Agent,发送一条普通的简短消息。
3. 等待项目会话处理请求。
4. 观察到 app-server 持续重连,最终 turn 被自动中断。
5. 切换到其他模型供应商或模型后重复测试,仍出现相同现象。

## 期望行为
Codex Agent 应建立稳定的 app-server 会话,持续接收流式响应并返回模型结果;切换模型供应商后也应能够正常完成 turn。

## 实际行为
请求长时间处于重连状态,最终被自动中断,项目中没有得到正常回复。更换模型供应商不能解决问题。

## 复现频率
目前每次在该项目中测试都能复现;切换模型供应商后仍可复现。

## 已尝试
- 确认普通 GPT 对话可以正常使用。
- 将项目 Codex 切换到其他模型供应商和模型,问题未改变。
- 对照 Cindy 与 Codex app-server 日志检查了代理、WebSocket 和流式请求链路。

## 脱敏诊断摘要
以下摘要已获得用户同意公开:Codex app-server 进程能够启动;切换供应商后,请求也进入了非 ChatGPT 供应商适配路径,但流式 `responses` 请求随后记录为客户端在响应过程中断开,没有出现明确的上游鉴权、额度或服务器错误。同时,Cindy 记录了输入协调器的 stale abort completion。现有证据更像项目 Codex 共用层的会话取消协调、流式代理处理或非 ChatGPT 供应商适配问题,而不是单一模型供应商不可用。日志中还反复出现 skill 文件格式警告,但目前尚未确认其是否为根因。

## 希望协助
请协助确认项目 Codex app-server 在请求取消/重连以及非 ChatGPT 供应商流式响应处理上的问题,并建议进一步的诊断方式或修复方案。
---
**版本区域**: CN
**OS**: win32 x64 (10.0.26200)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

Start with the Cindy and Codex app-server logs, focusing on the reconnect loop, WebSocket and streaming request path, and the input coordinator's stale abort completion. Compare a failing project turn across ChatGPT and non-ChatGPT providers. Done means the app-server maintains a session and completes a streaming turn without automatic interruption across the tested providers.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
ai, backend-api-design, desktop, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.