0.1.46 更新后原生模式 DeepSeek(Console Go) 报 Unsupported custom tool: 'exec'
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
## 环境信息
- 提交时间:2026-08-15
- 操作系统:Windows
- Cindy 版本:0.1.49(0.1.48 -> 0.1.49 于 2026-08-15 12:38 自动更新)
- 复现起始版本:0.1.46(2026-08-13 11:51 安装,用户确认 0.1.46 之后开始出现)
## 复现步骤
1. 在 Cindy 原生模式下选择模型 deepseek-v4-flash(providerId: opencode-go / 即报错中的 Console Go 通道)
2. 发起任何会触发 agent 工具调用的对话
3. 请求被上游拒绝,无重试
## 报错原文
{"model":"deepseek-v4-flash","error":{"param":null,"code":"invalid_request_error","type":"invalid_request_error","message":"Error from provider (Console Go): Upstream request failed: [invalid_request_error] Unsupported custom tool: 'exec'. Only 'apply_patch' is supported."}}
## 关联报错(桥接模式)
{"error":{"type":"invalid_request_error","code":"unsupported_feature","message":"Responses feature is not supported by the Chat Completions bridge: input_image"}}
- 现象:桥接模式发送图片时,Chat Completions 桥不支持 input_image
## 日志证据
- 会话日志(logs/sessions/68d7e4e7-565f-4306-80c2-50151d8323fe/2026-08-15.ndjson):
- startSession: model=deepseek-v4-flash, providerId=opencode-go, effort=xhigh
- codex turn error: message=报错原文, willRetry=false, isAuthMissing=false
- 更新日志(logs/cindy-update.log):
- 0.1.46-hotfix @ 2026-08-13 11:51
- 0.1.48-hotfix @ 2026-08-14 20:28
- 0.1.49-hotfix @ 2026-08-15 12:38
## 用户预期
- 0.1.46 之前原生模式使用同一 DeepSeek 模型/通道正常可用,更新后未改任何设置即报错
- 希望恢复原生模式下对第三方通道(Console Go / opencode-go)自定义工具调用的兼容性
## 请求
1. 排查 0.1.46 中 agent 自定义工具(exec)声明逻辑,是否对第三方通道缺少兼容降级
2. 排查 Chat Completions 桥对 input_image 的支持
3. 若能修复,请提供临时绕过方案或回退方式
Contributor guide
Research direction
Start with the 0.1.46 agent custom-tool declaration path and the Chat Completions bridge, using the session NDJSON log to reproduce the opencode-go deepseek-v4-flash failure. Check how exec and input_image are sent to these providers; done means the reported native tool error and bridge image error are handled compatibly, with regression coverage where the project provides it.
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
- 47/100