Skip to content

Provider API /v1/responses rejects Codex's non-function tool types (tools.N.type) and breaks the endpoint for Codex #885

Closed

Description

@EvenZ2001

Follow-up to #804, which was closed after Responses support went live.

The new POST /provider/v1/responses cannot be used from Codex. Every request fails with a tool-validation error before any model output is produced.

Actual Behavior

{
  "error": {
    "message": "Only `type:\"function\"` tools are supported on this endpoint. Built-in tools (web_search, file_search, code_interpreter, computer_use, mcp) are not executed here.",
    "param": "tools.8.type",
    "type": "invalid_request_error"
  }
}

The whole request is rejected with HTTP 400, so the turn never starts. Because Codex always sends a mixed tool array, there is no configuration on the client side that makes the endpoint usable.

Expected Behavior

/v1/responses should accept a normal Responses tool array from an agent client. Codex sends client-executed function tools plus non-function entries (for example the freeform custom apply_patch tool, and built-in declarations such as web_search). For tool types the endpoint does not execute, accepting the declaration and ignoring it is fine and is what other Responses-compatible gateways do; rejecting the entire request is not.

Steps to reproduce

  1. Point a client at https://api.commandcode.ai/provider/v1 with wire_api = "responses".
  2. Send any Codex request. The tool array contains non-function entries (the failing one is at index 8 in this case).
  3. The endpoint returns HTTP 400 with the message above.

Command Code Version

Provider API (gateway). Codex Desktop 0.155.0-alpha.9, wire_api = "responses", Windows, PowerShell.

Additional context

Activity

  1. ahmadbilaldev commented on Sep 18, 2026

    @ahmadbilaldev
    Contributor

    Taking a look

  2. EvenZ2001 commented on Sep 19, 2026

    @EvenZ2001
    Author

    Taking a look

    it's fixed, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions