Unexpected 400 Bad Request error when using gpt-5.1-codex-max with unsupported tool type

Resolved 💬 3 comments Opened Nov 21, 2025 by BobbyWang0120 Closed Nov 21, 2025
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

0.61.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.1-codex-max

What platform is your computer?

macOS using iTerm2

What issue are you seeing?

When using the GPT‑5.1 Codex Max model, I encountered an error when a tool call was made. The request returned an unexpected 400 Bad Request status with the following JSON payload:

{
  "error": {
    "message": "Invalid value: 'other'. Supported values are: 'search', 'open_page', and 'find_in_page'.",
    "type": "invalid_request_error",
    "param": "input[129].action.type",
    "code": "invalid_value"
  }
}

It looks like the model attempted to call a tool action type labeled other, which is not supported. Only search, open_page, and find_in_page are valid actions. This causes the conversation to break with a 400 error instead of executing the intended tool call.

What steps can reproduce the bug?

  1. Launch Codex CLI (version 0.59.0 or similar) and choose the gpt‑5.1-codex-max model.
  2. Initiate a conversation that causes the model to call a tool action. In my case, the model called a tool with type other (perhaps triggered by certain commands or connectors).
  3. Observe the response: the CLI returns a 400 Bad Request status with an error indicating that other is an invalid action type.

What is the expected behavior?

The model should only call supported tool action types (e.g., search, open_page, or find_in_page) when using GPT‑5.1 Codex Max. If an unsupported action is attempted, it should be gracefully handled or mapped to the correct tool rather than returning a 400 error. Ideally, the conversation should continue without breaking and the appropriate tool should be invoked.

Additional information

_No response_

View original on GitHub ↗

3 Comments

YcccByHe · 9 months ago

This error doesn't occur only on GPT-5.1 Codex Max; other models also experience it.

etraut-openai contributor · 9 months ago

Closing in favor of #7073

aniketicloud · 8 months ago

For me, I had installed shadcn, zod and Docker MCP servers in VSCode. I uninstalled them, now AI models are working