After selecting "Do not ask again for commands with the same prefix," the task immediately terminates with this API error.
Open 💬 2 comments Opened Jun 1, 2026 by chengzheng123456
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of the Codex App are you using (From “About Codex” dialog)?
26.527.3686.0
What subscription do you have?
订阅了套餐
What platform is your computer?
Windows
What issue are you seeing?
{"error":{"message":"An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. (insufficient tool messages following tool_calls message)","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}
What steps can reproduce the bug?
codex询问我是否执行该指令时,我选择是并且同样开头的代码不重复询问,然后就直接报错并终止了任务
What is the expected behavior?
_No response_
Additional information
_No response_
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
English translation:
What version of the Codex App are you using (From “About Codex” dialog)?
26.527.3686.0
What subscription do you have?
Subscribed to a plan
What platform is your computer?
Windows
What issue are you seeing?
{"error":{"message":"An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. (insufficient tool messages following tool_calls message)","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}
What steps can reproduce the bug?
When Codex asked whether to execute the command, I selected yes and chose not to be asked again for code with the same prefix. It then immediately reported an error and terminated the task.
What is the expected behavior?
_No response_
Additional information
_No response_
<!-- codex-issue-translator -->