codex icon indicating copy to clipboard operation
codex copied to clipboard

Web search tool leads to 400 and codex can't get past that

Open naveedehmad opened this issue 1 year ago • 12 comments

What version of Codex is running?

0.60.1

What subscription do you have?

Pro

Which model were you using?

gpt-5.1-codex-max

What platform is your computer?

Darwin 25.0.0 arm64 arm

What issue are you seeing?

write after it used the web search tool, it got stuck with a 400 error

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

What steps can reproduce the bug?

Uploaded thread: 019aa51c-142e-7141-9632-4cf3cfe1a13f

What is the expected behavior?

No response

Additional information

No response

naveedehmad avatar Nov 21 '25 07:11 naveedehmad

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #7065
  • #6979
  • #6968
  • #6945

Powered by Codex Action

github-actions[bot] avatar Nov 21 '25 07:11 github-actions[bot]

This should be fixed in https://github.com/openai/codex/pull/7061 .

imajes avatar Nov 21 '25 21:11 imajes

Yes, @imajes is correct. This is now fixed. Please update to the latest version (0.63.0).

etraut-openai avatar Nov 21 '25 21:11 etraut-openai

not fixed:

■ unexpected status 400 Bad Request: { "error": { "message": "Invalid value: 'other'. Supported values are: 'search', 'open_page', and 'find_in_page'.", "type": "invalid_request_error", "param": "input[12].action.type", "code": "invalid_value" } } Token usage: total=36,865 input=34,450 (+ 6,912 cached) output=2,415 (reasoning 1,600) To continue this session, run codex resume 019aa912-eb51-79b3-82f0-dda64e949184 georgii@Georgiis-MacBook-Pro infra % codex --version codex-cli 0.63.0

0ttik avatar Nov 22 '25 01:11 0ttik

model: gpt-5.1-codex-max

0ttik avatar Nov 22 '25 01:11 0ttik

@0ttik are you building main or are you running release? Because the problem was fixed a few hours ago; it takes a minute to get it to a release. :)

imajes avatar Nov 22 '25 05:11 imajes

我也遇到了同样的问题,刚更新到0.63.0版本,该问题仍然存在

pzp5700 avatar Nov 22 '25 09:11 pzp5700

@0ttik are you building main or are you running release? Because the problem was fixed a few hours ago; it takes a minute to get it to a release. :)

@imajes, I was just responding to this message, which turns to be incorrect. If it's fixed in main - good.

Yes, @imajes is correct. This is now fixed. Please update to the latest version (0.63.0).

0ttik avatar Nov 22 '25 11:11 0ttik

@imajes, I've checked, this commit should be in version 0.63 if I'm correct

Image

So I'd suggest reopening this bug, because it's still present

0ttik avatar Nov 22 '25 11:11 0ttik

■ unexpected status 400 Bad Request: {
  "error": {
    "message": "Invalid value: 'other'. Supported values are: 'search',
'open_page', and 'find_in_page'.",
    "type": "invalid_request_error",
    "param": "input[128].action.type",
    "code": "invalid_value"
  }
}
Token usage: ...
To continue this session, run codex resume ...
$ codex --version
codex-cli 0.63.0

Still getting the error with 0.63.0

KevinYanesG avatar Nov 26 '25 14:11 KevinYanesG

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

Having the Same Issue here. Using codex through vs code extension signed in through plus plan.

palindromeRice avatar Nov 28 '25 10:11 palindromeRice

+1, on 0.63.0 installed through brew, seeing the same error on gpt-5.1-codex-max and gpt-5.1, pro plan through the vscode extension on cursor + codex cli:

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

daryllimyt avatar Dec 01 '25 19:12 daryllimyt