[Bug] codex_app__automation_update schema type is null - causes DeepSeek HTTP 400 via CC Switch

Open 💬 0 comments Opened Aug 1, 2026 by fengzhenkai1-cloud

Error description

When using DeepSeek (deepseek-v4-pro) as the model provider through CC Switch, the proxy fails with:

CC Switch local proxy failed while handling Codex endpoint /responses. Provider: DeepSeek; model: deepseek-v4-pro; upstream_status: HTTP 400; cause: Invalid schema for function 'codex_app__automation_update': schema must be a JSON Schema of 'type: "object"', got 'type: null'.

Root cause

The function definition for codex_app__automation_update has a JSON Schema where ype is
ull instead of "object". DeepSeek's API validates function schemas strictly and rejects the request with HTTP 400.

Expected behavior

The schema should have "type": "object" (a string value), not "type": null.

Impact

Users cannot use DeepSeek as a model provider through CC Switch because every request that includes the codex_app__automation_update tool definition will be rejected.

Suggested fix

Update the codex_app__automation_update function schema to use "type": "object" instead of
ull (or "type": null).

Environment

  • Codex desktop app (Windows)
  • CC Switch plugin
  • DeepSeek deepseek-v4-pro
  • Date: 2026-08-01

View original on GitHub ↗