[Crash] : Opencode crashes after couple of tool call by the AI. #6922

Open
opened 2026-02-16 18:05:36 -05:00 by yindo · 4 comments
Owner

Originally created by @DevDeepakBhattarai on GitHub (Jan 20, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Opencode crashed after couple of tool calls, and shows this error

Plugins

opencode-antigravity-auth@beta , but even after i removed it , the same error still shows up

OpenCode version

1.1.26 and 1.1.25

Steps to reproduce

  1. login in using the OpenAI codex plan
  2. Ran prompt with GPT Codex 5.2
  3. It crashes

Screenshot and/or share link

Image

Operating System

Windows 11 25H2

Terminal

Powershell

Originally created by @DevDeepakBhattarai on GitHub (Jan 20, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Opencode crashed after couple of tool calls, and shows this error ### Plugins opencode-antigravity-auth@beta , but even after i removed it , the same error still shows up ### OpenCode version 1.1.26 and 1.1.25 ### Steps to reproduce 1. login in using the OpenAI codex plan 1. Ran prompt with GPT Codex 5.2 1. It crashes ### Screenshot and/or share link <img width="1280" height="322" alt="Image" src="https://github.com/user-attachments/assets/e6b8c6ea-7d6c-423b-972b-f0439f2a4ead" /> ### Operating System Windows 11 25H2 ### Terminal Powershell
yindo added the windowsbug labels 2026-02-16 18:05:36 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2026):

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

  • #8137: gpt5.2 can not use tool call - Tool call validation errors with GPT-5.2-Codex
  • #8422: MCP invalid schema in gpt-5.2-codex - Tool schema validation issues with GPT-5.2-Codex
  • #8622: gpt-5.2-codex TypeError: sdk.responses is not a function - Critical error with GPT-5.2-Codex tool initialization
  • #8009: Tool errors should be returned to Agent instead of crashing the Action - Architectural issue where tool call failures crash the entire application

All three #8137, #8422, and #8622 involve the same model (GPT-5.2-Codex) and tool call failures, which closely match your crash scenario. Issue #8009 addresses the root cause of why tool failures lead to application crashes.

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

@github-actions[bot] commented on GitHub (Jan 20, 2026): This issue might be a duplicate of existing issues. Please check: - #8137: gpt5.2 can not use tool call - Tool call validation errors with GPT-5.2-Codex - #8422: MCP invalid schema in gpt-5.2-codex - Tool schema validation issues with GPT-5.2-Codex - #8622: gpt-5.2-codex TypeError: sdk.responses is not a function - Critical error with GPT-5.2-Codex tool initialization - #8009: Tool errors should be returned to Agent instead of crashing the Action - Architectural issue where tool call failures crash the entire application All three #8137, #8422, and #8622 involve the same model (GPT-5.2-Codex) and tool call failures, which closely match your crash scenario. Issue #8009 addresses the root cause of why tool failures lead to application crashes. Feel free to ignore if none of these address your specific case.
Author
Owner

@DevDeepakBhattarai commented on GitHub (Jan 20, 2026):

P.S I tried using the MiniMax from Opencode Zen and got the same crash issue, so its not a problem with GPT-5.2-Codex specifically

@DevDeepakBhattarai commented on GitHub (Jan 20, 2026): P.S I tried using the MiniMax from Opencode Zen and got the same crash issue, so its not a problem with GPT-5.2-Codex specifically
Author
Owner

@DevDeepakBhattarai commented on GitHub (Jan 27, 2026):

@rekram1-node any leads on the issue ?

@DevDeepakBhattarai commented on GitHub (Jan 27, 2026): @rekram1-node any leads on the issue ?
Author
Owner

@DevDeepakBhattarai commented on GitHub (Jan 27, 2026):

This error is still there in, 1.1.36, When reported on bun. Its says app is using outdated version of bun, and should lets app developers know to update to the lastest version of bun i.e 1.3.6.
But opencode ships with 1.3.5

@DevDeepakBhattarai commented on GitHub (Jan 27, 2026): This error is still there in, 1.1.36, When reported on bun. Its says app is using outdated version of bun, and should lets app developers know to update to the lastest version of bun i.e 1.3.6. But opencode ships with 1.3.5
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6922