gpt5 and claude mode failed for tool calls
Resolved 💬 3 comments Opened Dec 31, 2025 by itech001 Closed Dec 31, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
code-cli 0.77.0
What subscription do you have?
none
Which model were you using?
gpt-5 aws-claude-sonnet-4.5
What platform is your computer?
linux
What issue are you seeing?
gpt5 model
error: An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_xxx
What steps can reproduce the bug?
set model_providers with custom base_url and model gpt-5
What is the expected behavior?
_No response_
Additional information
_No response_
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
It looks like you're using a custom model provide with the "chat" wire API. We've announced that this API is deprecated, and support for it will be removed soon. Please update to the "responses" wire API.
Closing in favor of #8479 and #8107.