#7459·cc-switch

Codex 桌面端内置工具 automation_update 顶层 oneOf schema 被上游拒绝(HTTP 400)

Author: Silence77710Created Sep 17, 2026Updated Sep 17, 2026
Labelsbug

Self Checks / 自检

CC Switch Version / 版本号

3.20.3(macOS)

Operating System / 操作系统

macOS

Related App / 涉及应用

Codex

Steps to Reproduce / 重现步骤

  1. 用 CC Switch 将 Codex 切到第三方中转
  2. 在 Codex 桌面 App 内发起任意对话
  3. 请求在校验阶段被上游拒绝

Expected Behavior / 期望行为

转发前对工具 schema 做兼容处理(将顶层 oneOf/anyOf/allOf 包装或降级),

Actual Behavior / 实际行为

Invalid schema for function 'mcp__codex_app__automation_update': schema must have type 'object' and not have 'oneOf'/'anyOf'/'allOf'/'enum'/'const'/'not' at the top level. upstream_error: input_schema does not support oneOf, allOf, or anyOf at the top level

Additional Context / 补充信息

GPT、Claude等模型不行,国内的Kimi、GLM可以