workdir bug
Resolved 💬 5 comments Opened Apr 22, 2025 by teunv05 Closed Apr 22, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
0.1.2504220136
Which model were you using?
o4-mini
What platform is your computer?
darwin | arm64 | 24.4.0
What steps can reproduce the bug?
- ```
maak een simpele index.html
```
0 reasoning|0 tool
What is the expected behavior?
_No response_
What do you see instead?
system
⚠️ OpenAI rejected the request (request ID:
req_f6666fc2d7f4e93d8bc41101b6c5f6d0). Error details: Status: 400, Code:
invalid_function_parameters, Type: invalid_request_error, Message: 400
Invalid schema for function 'shell': In context=(), 'required' is required
to be supplied and to be an array including every key in properties. Missing
'workdir'.. Please verify your settings and try again.
Additional information
_No response_
5 Comments
The same OpenAI rejected the request (request ID: req_7082a17677978f837eaa4329d5784b19). Error details: Status:
400, Code: invalid_function_parameters, Type: invalid_request_error, Message: 400 Invalid schema for
function 'shell': In context=(), 'required' is required to be supplied and to be an array including every
key in properties. Missing 'workdir'.. Please verify your settings and try again.
There appears to be some schema updates. you can downgrade your codex version to @openai/codex@0.1.2504211509. This seems to work fine
+1
Fixed in https://github.com/openai/codex/commit/d78f77edb707a1a8147cc6b28a677ec553d83182 and https://github.com/openai/codex/commit/7c1f2d7deba4bf05361bf682931444fbf552eda9
Please install latest version (0.1.2504221401).