makecindy / makecindy/cindy

Maker 中 Codex + DeepSeek 会话在 0.1.45 更新后全部失败: Unsupported custom tool: 'exec'. Only 'apply_patch' is supported.

Open
#2,591 2 comments 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.45

---

## 现象
- 环境: Cindy 0.1.44 → 0.1.45 (hotfix, 2026-08-13 自动更新安装)
- 功能: Maker(编辑器内 AI)的 Codex 会话, 使用 DeepSeek 模型 (deepseek-v4-pro / deepseek-v4-flash, provider=deepseek, 走 cindy_gateway)
- 更新前 (0.1.44) 一切正常; 更新后每次请求都返回 400 invalid_request_error:
`Unsupported custom tool: 'exec'. Only 'apply_patch' is supported.`
- 附带现象: embedding 同时报错 `voyage/voyage-4 INVALID_MODEL` (XD Gateway /v1/embeddings 400)

## 复现步骤
1. 在 0.1.44 下正常使用 Maker 的 Codex + DeepSeek 会话
2. 更新到 0.1.45 hotfix
3. 恢复或新建 Codex 会话 (DeepSeek 模型)
4. 发送任何消息都会失败, 100% 必现, 日志显示 willRetry=false

## 期望行为
更新后 DeepSeek 模型应继续正常执行 Codex 工作 (exec 工具可用)

## 实际行为
每次 turn 都返回 invalid_request_error, 会话完全不可用

## 复现频率
100%, 更新后每次请求必现

## 诊断摘要 (已脱敏)
- 安装 0.1.45 后所有 turn 报错, 更新前同一会话有数百次成功调用
- codex turn error: {"error":{"message":"Unsupported custom tool: 'exec'. Only 'apply_patch' is supported.","type":"invalid_request_error","code":"invalid_request_error"}}
- 疑似根因: cindy_gateway 对 Codex 请求的转发被切到 OpenAI Responses API 受限模式 (仅允许 apply_patch), 不再透传 Codex 本地模式的 exec 工具; 或 0.1.45 网关模型路由变化导致请求被转发到不兼容端点

## 已尝试的解决办法
未尝试绕过, 等待官方修复
---
**版本区域**: CN
**OS**: win32 x64 (10.0.22631)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Start by tracing the 0.1.45 cindy_gateway route for Codex requests and compare it with the 0.1.44 path, including the OpenAI Responses forwarding mode and the embeddings endpoint. Done means a DeepSeek Codex session can complete turns with exec after the update, with the related gateway behavior verified.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.