{"error":{"message":"An assistant message with 'tool_calls' must be followed by tool messages

Open 💬 2 comments Opened May 31, 2026 by 1147517473z-web
💡 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.31326

What subscription do you have?

api

What platform is your computer?

win11

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?

just chat ,when i let it make a ppt for me

What is the expected behavior?

finish my task

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 2 months ago

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

  • #25097

Powered by Codex Action

seagullcry · 2 months ago

Same issue here, adding more details:

Environment:

  • Codex version: 26.527.3686.0
  • OS: Windows 11

Trigger condition:

  • 100% reproducible when tool authorization is required (e.g., editing files, executing commands)
  • Normal chat works fine before authorization
  • Error occurs immediately after clicking "Allow"

Error message:
{"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"}}

Impact:

  • Cannot use core Codex features (file editing, command execution)
  • Severely breaks workflow

Please prioritize this fix!