The call to azure/gpt-5-codex failed. When the large model executed the tool twice at once, #2183

Closed
opened 2026-02-16 17:34:33 -05:00 by yindo · 2 comments
Owner

Originally created by @zWingz on GitHub (Oct 20, 2025).

Description

Image

OpenCode version

0.15.8

Steps to reproduce

No response

Screenshot and/or share link

https://opencode.ai/s/17YLTo5o

Operating System

No response

Terminal

No response

It can be fixed by modify the code in prompt.ts and add a options store: false or "parallelToolCalls": false, to opencode.json

Image Image
Originally created by @zWingz on GitHub (Oct 20, 2025). ### Description <img width="1891" height="144" alt="Image" src="https://github.com/user-attachments/assets/e03f267b-f418-453c-8e61-98274097e876" /> ### OpenCode version 0.15.8 ### Steps to reproduce _No response_ ### Screenshot and/or share link https://opencode.ai/s/17YLTo5o ### Operating System _No response_ ### Terminal _No response_ It can be fixed by modify the code in `prompt.ts` and add a options `store: false` or `"parallelToolCalls": false,` to `opencode.json` <img width="1213" height="150" alt="Image" src="https://github.com/user-attachments/assets/50e2033a-6db1-483b-8e5f-f4944ca9132a" /> <img width="504" height="383" alt="Image" src="https://github.com/user-attachments/assets/57071347-5288-4890-bc97-d6bddcc2f291" />
yindo added the bug label 2026-02-16 17:34:33 -05:00
yindo closed this issue 2026-02-16 17:34:33 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 20, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3044: AI_APICallError occurs after running Opencode with Azure GPT-5 Codex and GPT-5 for several minutes
  • #1695: GPT-5: AI_InvalidToolInputError: Invalid input for tool read: Type validation failed.
  • #780: GPT-5 raises exception

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 20, 2025): This issue might be a duplicate of existing issues. Please check: - #3044: AI_APICallError occurs after running Opencode with Azure GPT-5 Codex and GPT-5 for several minutes - #1695: GPT-5: AI_InvalidToolInputError: Invalid input for tool read: Type validation failed. - #780: GPT-5 raises exception Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 20, 2025):

This is a duplicate of #3044, though your bug fix suggestion makes sense. PR welcome

@rekram1-node commented on GitHub (Oct 20, 2025): This is a duplicate of #3044, though your bug fix suggestion makes sense. PR welcome
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2183