makecindy / makecindy/cindy

bug: 使用 OpenCode 供应商接入 Codex Runtime 后,发送任意提示词都会失败;其他供应商正常。

Open
#2,502 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
395
Avg merge
21h 48m
Merged PRs (30d)
776

Description

### 问题描述 / What happened

## 问题描述
使用 OpenCode 供应商接入 Codex Runtime 后,发送任意提示词都会失败;其他供应商正常。

### 环境 / Environment

- Runtime:Codex
- 供应商:OpenCode(显示名称为 OpenCode Go)
- 上游协议:Chat Completions(Cindy 桥接)
- 基础 URL:https://opencode.ai/zen/go/v1
- Cindy 版本:0.1.44
- 操作系统:win11

### 复现步骤 / Steps to reproduce

1. 在 Cindy 的模型供应商设置中配置 OpenCode 供应商。
2. 使用 Codex Runtime,并选择 Chat Completions(Cindy 桥接)。
3. 选择该 OpenCode 供应商对应的模型。
4. 发送任意提示词。

### 日志与截图 / Logs & screenshots

## 实际行为
每次请求都失败并返回:
```json
{"error":{"type":"invalid_request_error","code":"unsupported_feature","message":"Responses feature is not supported by the Chat Completions bridge: tools[24].web_search"}}
```

## 期望行为
OpenCode 供应商应能正常处理请求并保留 web_search 功能;若桥接协议不支持该工具,应提供兼容转换或清晰、可操作的配置提示,而不是令所有请求失败。

## 复现频率
每次复现(使用 OpenCode 供应商时)。

## 已尝试的方法
- 未关闭 web_search,因为该功能是必要需求,也不知道如何关闭。
- 更换其他供应商后可以正常使用,问题似乎限定于 OpenCode 供应商或其协议兼容层。

## 脱敏诊断摘要(已获用户同意)
- 错误类型:invalid_request_error
- 错误代码:unsupported_feature
- 失败位置:Chat Completions bridge 处理 tools[24].web_search
- 触发条件:OpenCode 供应商 + Codex Runtime + Chat Completions(Cindy 桥接)
- 对照结果:其他供应商正常

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the request with the OpenCode provider, Codex Runtime, and the Chat Completions bridge, then trace how the bridge serializes tools and handles tools[24].web_search. Compare the failing request with a provider that works. Done means web_search requests no longer fail, or the configuration clearly explains how to use a compatible mode without losing the required feature.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.