farion1231 / farion1231/cc-switch

Claude Desktop vs 火山方舟 Agent Plan 组合 bug

Open
#4,875 1 comment 4 reactions 0 assignees View on GitHub
bug stale
Dominant language
Rust
Stars
133k
Forks
9.2k
Avg merge
3d 12h
Merged PRs (30d)
47

Description

### Self Checks / 自检

- [x] I have read the [FAQ](https://github.com/farion1231/cc-switch#faq) section in README.
我已阅读 README 中的[常见问题](https://github.com/farion1231/cc-switch#常见问题)。

- [x] I have searched for [existing issues](https://github.com/farion1231/cc-switch/issues), including closed ones.
我已搜索过[已有的 Issue](https://github.com/farion1231/cc-switch/issues),包括已关闭的。

### CC Switch Version / 版本号

3.16.4

### Operating System / 操作系统

macOS

### Related App / 涉及应用

Claude Code

### Steps to Reproduce / 重现步骤

复现步骤:
购买火山 agent plan
请求地址填写:https://ark.cn-beijing.volces.com/api/plan/v3/responses
api 格式填写:OpenAI Responses API
表现:
gateway connection 报错
Inference — Gateway rejected model "claude-haiku-4-5" (HTTP 404)
404 http://127.0.0.1:15721/claude-desktop/v1/messages
{"'error": {"message" :""., "type":"upstream_error"}}

每次修改配置保存后,错误都会再次重现。临时修复策略是让 codex 去改 db。

根因是 CC Switch 3.16.4 的 URL 拼接逻辑和 Claude Desktop 配置表单存在缺陷:

1. 火山正确接口是:
`https://ark.cn-beijing.volces.com/api/plan/v3/responses`

2. CC Switch 将原 Base URL 当作前缀,自动追加 `/v1/responses`,实际请求到了错误地址:
`.../api/plan/v3/v1/responses`

3. 因此火山返回 HTTP 404。

4. CC Switch 的 Claude Desktop 编辑表单还会自动删除 `isFullUrl` 标记,导致无法通过界面持久保存正确配置。

最终修复是写入完整 Responses URL,并设置 `isFullUrl=true`,禁止 CC Switch再次拼接路径。实测已返回 HTTP 200。

### Expected Behavior / 期望行为

cc switch 现有配置应正确使用。

### Actual Behavior / 实际行为

_No response_

### Additional Context / 补充信息

_No response_

Contributor guide

Open the contributing guide

Research direction

Start in the Claude Desktop configuration form and the URL construction path, focusing on how the Base URL and isFullUrl setting are persisted. Reproduce the Volcengine Agent Plan configuration with the OpenAI Responses API, then verify that saving preserves the full endpoint and requests no longer receive HTTP 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, tauri
Domain
api, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.