Unknown parameter: 'input[N].status' Claude Code
Quick fix
更新到包含回放白名单修复的版本,使 Claude Code 在 Codex OAuth 会话续传时过滤 reasoning 信封中的 status 字段。
Symptom
Section titled “Symptom”API Error: 400 Unknown parameter: 'input[2].status'.Claude Code 通过 Codex OAuth 桥接续传会话时,cc-switch 会回放历史 reasoning 信封。后端从 2026-10-03T05:35Z 起在 reasoning 输出中加入了 `status: "completed"`,而 Responses 的 input schema 不接受该字段,因而回放会返回 400。
修复方案是在 `transform_responses.rs` 的 `thinking` 和 `redacted_thinking` 回放分支使用白名单,只保留 `encrypted_content`、`id`、`summary` 和 `type`。这也能清理已存在的历史信封;只修改制作端无法修复已有会话。
使用包含回放白名单修复的 cc-switch 版本,然后重新续传原 Claude Code 会话;修复会在回放时过滤 `status` 等 input schema 外字段。
Affected Versions
Section titled “Affected Versions”ToolClaude Code
Version3.20.4
Platforms未知
Source Issues
Section titled “Source Issues”本页汇总自 1 个真实 issue
(暂无 FAQ)
这是一个非官方社区 wiki,与 cc-switch 作者及项目本身无隶属关系。内容整理自项目公开的 GitHub issues。本站不分发任何软件。