Bad request for web search
Resolved 💬 12 comments Opened Nov 20, 2025 by mgryning Closed Jan 13, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.60.1
What subscription do you have?
Pro
Which model were you using?
Gpt-5-Codex-MAX
What platform is your computer?
WSL2 / Ubuntu
What issue are you seeing?
• Explored
└ Read auth-debug-server.js
■ 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[36].action.type",
"code": "invalid_value"
}
}
What steps can reproduce the bug?
Uploaded thread: 019aa062-b48c-7ce1-
What is the expected behavior?
No error :)
Additional information
_No response_
12 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
EDIT : I think this issue is specific to wsl, because when i try to use codex with native windows it works fine
Even after disabling web_search_request there is still an error
[features]
#web_search_request = true
■ 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[259].action.type",
"code": "invalid_value"
}
}
@etraut-openai, any other workaround yet?
not sure if related but had this after a search
■ unexpected status 400 Bad Request: {
"error": {
"message": "Missing required parameter: 'input[3].id'.",
"type": "invalid_request_error",
"param": "input[3].id",
"code": "missing_required_parameter"
}
}
i disabled web_search and web_search_request in
config.toml, but I still get error after some long running time in a active session:Running any prompt shows now 5x times:
Reconnecting... 5/5 (7s • esc to interrupt)and then error:
Environment
Test but not working workarounds
Test with working workaround
Current working workaround is to extend the Prompt:
Guardrails: As web_search is broken in codex please use manual download with curl/wget for the time beingand it really works :)
Same :(
Got same issue after codex searching from web.
The problem still exists in 0.61.0. The last version that worked for me was 0.58.0.
Fixed with 0.63.0 and #7061
Still not fixed for me
@0ttik Can you share the
thread-idof a session if you're still seeing this issue on 0.63.0 and above? You can get thethread-idvia the/feedbackcommand in the CLI. ThanksIf you're still seeing this, please use the
/feedbackslash command to upload your logs and file a new bug report.