OpenCode known issues

Known breaks in OpenCode from github.com/anomalyco/opencode, with quoted workarounds and fixed-in versions where they exist.

Before you upgrade OpenCode

Type the version you're about to install (or just upgraded to). Lists tracked issues that mention it. Same data as /api/issues/opencode.json.

Mentioned in open issues:

Pulled from public GitHub issues updated in the last 45 days and filtered for always-on problems: install and update breakage, crashes and hangs, gateway/daemon trouble, auth, and headless setups. Ranked by engagement, weighted toward always-on, self-hosting, install/update, crash, auth, MCP and daemon problems (cosmetic desktop-UI issues are down-weighted). Workarounds and "fixed in" versions are quoted only when the issue or its top comments state them. Severity is an automatic estimate from labels, keywords, and engagement, not an official rating. Last refresh: Oct 26, 2026 6:18 AM ET.

OpenCode high open other

Is there a way to sandbox the agent ?

Is there a way to restrict terminal command from a agent to access/edit file outside the current directory ? I see that gemini-cli or codex-cli use seatbelt on macOS. I don't see any equivalent for copencode.

anomalyco/opencode#2242 80 thumbs up · 103 comments opened 2025-08-25 · updated 2026-10-24
OpenCode high closed crash/hang

OpenCode v1.17.10 crashes with Bun segmentation fault on Windows; v1.17.9 appears stable

After upgrading OpenCode to v1.17.10, OpenCode started crashing with a native Bun segmentation fault on Windows. Downgrading to v1.17.9 appears to stop the fatal crash under the same repository/configuration/session pattern. This looks…

anomalyco/opencode#33742versions 1.17.10, 1.17.9 46 thumbs up · 63 comments opened 2026-06-25 · updated 2026-10-11
OpenCode medium closed crash/hang

always stuck at “Preparing write...”

My Prometheus always stuck at “Preparing write...”。

anomalyco/opencode#11112 52 thumbs up · 83 comments opened 2026-01-29 · updated 2026-10-01
OpenCode medium open self-host/headless

desktop: custom provider save always throws "unavailable on this server"

OpenCode Desktop exposes the "Custom OpenAI-compatible provider" form in Settings → Providers, but the save handler unconditionally throws provider.custom.unavailable, so the flow can never succeed on any server — including the app's own…

anomalyco/opencode#50650versions 2.0.14 13 thumbs up · 13 comments opened 2026-09-22 · updated 2026-10-23
OpenCode high fixed install/update

Regression in 1.18.30: every prompt crashes with TypeError in SystemPrompt.environment ("a.name") — 1.18.18 works fine

After updating to opencode 1.18.30 via pacman, every single prompt fails immediately with: Failed to send prompt. Unexpected server error. Check server logs for details. This happens on a brand new session, on the very first message, with…

anomalyco/opencode#48645versions 1.18.30, 1.18.18, 1.18.7 18 thumbs up · 10 comments opened 2026-09-12 · updated 2026-09-21
OpenCode medium open install/update

Unable to install OpenCode on windows with winget command

Unable to install OpenCode on windows with winget command I follow the instruction described in Changelog: https://github.com/anomalyco/opencode/blob/dev/CHANGELOG.md#highlights-3 The root cause…

anomalyco/opencode#56297 6 thumbs up · 2 comments opened 2026-10-17 · updated 2026-10-22
OpenCode medium open install/update

migrate-v1: non-git sessions in "global" project hidden after V1→V2 upgrade

After upgrading from V1.18.31 to V2.0.8, sessions that V1 stored in the global project (sessions created in non-git directories) become invisible in the TUI session picker, because V2 creates a per-directory project and the picker filters…

anomalyco/opencode#49827versions 2.0.8, 1.18.31 3 thumbs up · 17 comments opened 2026-09-18 · updated 2026-10-23
OpenCode medium fixed auth/session

OAuth Authorization Fails with HTTP 400 in OpenCode Desktop 2.0.28 on Windows

OpenCode Desktop 2.0.28 fails to complete ChatGPT OAuth authorization on Windows. After selecting the ChatGPT sign-in option and proceeding through the browser authorization flow, the browser displays Authorization failed with the message…

anomalyco/opencode#55211versions 2.0.28 6 thumbs up · 9 comments opened 2026-10-13 · updated 2026-10-25
OpenCode medium open always-on/daemon

[gateway] 30-image cap applied only to some session routes: identical request flips 400/200 with only x-opencode-session changed; capped sessions cannot /compact

The OpenCode Go gateway (https://opencode.ai/zen/go/v1) enforces a 30-image-per-request cap on only some routes: enforcement follows the x-opencode-session routing value and the model. Identical requests (same API key, same model, same…

anomalyco/opencode#51073versions 3.14.3, 2.6-flash 4 thumbs up · 1 comments opened 2026-09-24 · updated 2026-09-29
OpenCode medium open auth/session

openai: ChatGPT OAuth requests use Zen API key

incorrectly binds the OpenAI provider to the OpenCode Zen integration, causing a Zen API key to be sent to ChatGPT’s OAuth-only Codex endpoint. OpenAI rejects the key with “API keys are not supported by this endpoint.” The correct OpenAI…

anomalyco/opencode#49847versions 2.0.8 3 thumbs up · 9 comments opened 2026-09-18 · updated 2026-10-11
OpenCode medium closed install/update

Free usage limit does not reset after 24+ hours - stuck in infinite retry loop

I am using the free tier of OpenCode. I received the "Free usage exceeded, subscribe to Go [retrying in XXXXXs]" message. The problem is that the limit does NOT reset even after waiting for more than 24 hours and doing nothing in the app…

anomalyco/opencode#58911 2 thumbs up · 2 comments opened 2026-10-25 · updated 2026-10-26
OpenCode medium fixed auth/session

NO API KEY

I subscribed to OpenCode Go today. My Go subscription is active, but the console does not show any personal API key or any option to create/copy one. /connect → OpenCode Go requires an API key. The Keys page only allows creating Service…

anomalyco/opencode#50885versions 2.0.15 11 thumbs up · 10 comments opened 2026-09-23 · updated 2026-10-17
OpenCode medium closed auth/session

Incorrect API key provided: sk

OpenCode returns an OpenAI 401 when sending a prompt. The error is: `Incorrect API key provided: sk-svcac OpenCode’s bot is asking you to edit the issue body (not just comment). The numbered fields were left as No response. You have about…

anomalyco/opencode#51419 12 thumbs up · 8 comments opened 2026-09-25 · updated 2026-09-26
OpenCode medium fixed auth/session

Go API key is not available in the new v2 Console

I have an active OpenCode Go subscription, and Go models work normally in OpenCode CLI. However, I cannot find any way to create, view, or copy a Go API key in the new v2 Console. The current Go documentation still says users can copy an…

anomalyco/opencode#52227versions 1.18.33 4 thumbs up · 14 comments opened 2026-09-30 · updated 2026-10-21
OpenCode medium fixed network

tui: false "Session location unavailable" prompt after network reconnect

When the TUI reconnects after a brief network interruption, it can replace the composer with the "Session location unavailable — Choose another directory to continue this session" recovery prompt even though the session's directory is…

anomalyco/opencode#55250versions 2.0.27 3 thumbs up · 6 comments opened 2026-10-13 · updated 2026-10-21
OpenCode medium open self-host/headless

terminal does not clipboard read (kitty OSC 5522) for image paste over SSH

I use the TUI over SSH and can't paste images. Unsure if it's a bug or a gap in the design: the clipboard I want to read is on my laptop, but the TUI is running on the remote box. Add a read path to the terminal clipboard backend using…

anomalyco/opencode#48628versions 0.0.0-beta 3 thumbs up · 2 comments opened 2026-09-12 · updated 2026-09-15
OpenCode medium open crash/hang

Models get stuck on "Thinking" after a few hours

After using OpenCode for a few hours, any model I try gets stuck indefinitely on "Thinking". There is no error message and the request never finishes. Switching to another model does not help. I have not reached any usage or rate limits…

anomalyco/opencode#49033 2 thumbs up · 3 comments opened 2026-09-14 · updated 2026-09-14
OpenCode medium closed auth/session

providers: GitHub Copilot model sync never runs after login, no models listed

GitHub Copilot OAuth login succeeds and the account is stored, but no Copilot models ever appear in /models or opencode models. The model-list sync is never attempted after login: the server log contains no sync success or failure for the…

anomalyco/opencode#51928versions 2.0.18 4 thumbs up · 4 comments opened 2026-09-28 · updated 2026-10-17
OpenCode medium closed auth/session

opencode-go/deepseek-v4.1-flash randomly rejects requests with 400/403

I'm hitting random failures with deepseek-v4.1-flash on the opencode-go provider. The session just stops with: Bad Request: {"model":"deepseek-v4.1-flash"} Sometimes I also see it come back as a 403 with error code: 1010 when I replay the…

anomalyco/opencode#51434versions 1.18.32 4 thumbs up · 5 comments opened 2026-09-26 · updated 2026-10-11
OpenCode high fixed mcp/tools

VSCode plugin broken

On start it use opencode --port 16955 Unrecognized flag: --port in command opencode but correct syntax is opencode serve --port 16955 opencode v2.0.10 Install opencode & vscode plugin Use button with black square on white "Open opencode in…

anomalyco/opencode#49992versions 2.0.10 6 thumbs up · 5 comments opened 2026-09-19 · updated 2026-10-12
OpenCode high fixed crash/hang

`opencode auth login` crashes on Linux without xdg-open

On a Linux box without xdg-utils (SSH, containers), opencode auth login prints the authorization URL and then exits with Error: Executable not found in $PATH: "xdg-open" and a stack trace, so the login can't be finished. openUrl in…

anomalyco/opencode#52548versions 2.0.21 2 thumbs up · 3 comments opened 2026-10-01 · updated 2026-10-16
OpenCode medium closed install/update

[Bug] Mistral provider (zai-glm-5-2) fails with AI_TypeValidationError on streamed tool calls (@ai-sdk/mistral dependency update needed)

OpenCode Version: 1.18.29 Model / Provider: Mistral (mistral/zai-glm-5-2) When using Mistral models (specifically zai-glm-5-2) with tool calling enabled, streaming responses crash with an AITypeValidationError. The error trace indicates…

anomalyco/opencode#49139versions 1.18.29 3 thumbs up · 3 comments opened 2026-09-15 · updated 2026-10-11
OpenCode high fixed crash/hang

tui: /btw crashes when rendering answer dialog

Stop letting @thdxr push :) Running the built-in /btw slash command crashes the TUI after the generated answer is returned. The answer dialog attempts to access PluginProvider outside its context boundary. opencode version: 2.0.8 Shell…

anomalyco/opencode#49777versions 2.0.8, 1.3.1 3 thumbs up · 6 comments opened 2026-09-18 · updated 2026-09-27
OpenCode high fixed crash/hang

Android/Bionic: Bun 1.4.1 splitting:true causes a.name crash

Totally not AI-generated OpenCode 1.18.31 on Android/Bionic crashes before the provider call when compiled with Bun 1.4.1 and splitting:true. Observed failure: TypeError: undefined is not an object (evaluating 'a.name') Affected endpoints…

anomalyco/opencode#49262versions 1.18.31, 1.4.1, 0.5.5 2 thumbs up · 2 comments opened 2026-09-16 · updated 2026-10-01