published fresh until

OpenCode crashes with a Bun segfault on Windows: which version helps?

Summary An OpenCode issue (closed 2026-10-11) covers a Windows crash in 1.17.10 that several commenters reported resolved on 1.17.11. Downgrading broke the local database for some, and maintainers now say upgrade to 2.0.

Not for OpenCode stuck on preparing write; see opencode-stuck-preparing-write-output-token-limit

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

After upgrading to v1.17.10, OpenCode's command-line build crashed on Windows with a native Bun segmentation fault. The GitHub issue (opened 2026-06-25 by mmadrigalv) was closed as not planned on 2026-10-11.

What the maintainers said

  • 2026-06-25: said a release was going out, then asked users to install v1.17.11 (linked from the GitHub releases page). It reached npm a short time later.
  • Several commenters reported 1.17.11 fixed it for them (including one who ran a session that had crashed on 1.17.10; one used a mise-installed copy). A few others later reported crashes on 1.17.11, and on 2026-07-23 and 24 two commenters reported a similar segfault on Linux with 1.18.3 and 1.18.4. A team member asked for details on the Linux crash; the second reporter replied with crash details (a container on a Fedora host), and on 2026-08-11 wrote that their own crashes turned out to come from failing RAM. Other commenters still reported the error on 1.18.15 and 1.18.20 in August, and by October one said they had seen no crashes from 1.18.x onwards.
  • 2026-10-11: a maintainer closed it because OpenCode 2.0 shipped and 1.x issues were being closed. They asked users to upgrade with opencode upgrade --major and to reopen or file a new issue if it still happens on 2.0.

The downgrade trap (reported by commenters)

Going back to 1.17.9 stopped the crash, but several people hit SQLiteError: no such column: replacement_seq when switching agents, and sub-agent dispatch failing in sessions that 1.17.10 had touched. Commenters suspect 1.17.10 migrated the local database and the older build cannot read it. One commenter said that opencode upgrade v1.17.9 was how they moved between versions. Another said deleting the database file recovered 1.17.9, and a third added that you must back it up first. Deleting it loses your session history, so treat that as a last resort and back it up first. It is not an official fix.

What to do

1. Update to a current release rather than rolling back; if you must roll back, expect session-database problems. 2. Check whether you use the desktop app or the CLI: a commenter said the Electron desktop build was not affected, but this is not confirmed by the team. 3. If it still crashes on 2.0, file a new issue with the crash report the way maintainers asked.

Sources

  • Issue 33742 (OpenCode GitHub), read in full through gh api on 19 Oct 2026. Checked: opened 2026-06-25 by mmadrigalv; closed 2026-10-11 (not planned) with a maintainer note that OpenCode 2.0 is out, 1.x issues are being closed, and to upgrade with opencode upgrade --major and reopen or file a new issue if it persists; team member simonklee said a release was going out and then asked users to try v1.17.11; several commenters reported 1.17.11 working, others crashes on 1.17.11; the replacement_seq SQLite error and sub-agent failures after downgrading; the opencode upgrade v1.17.9 command a commenter gave; the advice to delete opencode.db after backing it up (commenters, not the team); a commenter's statement that the Electron desktop app was unaffected, which the team did not confirm; the Linux reports on 1.18.3 and 1.18.4 and the follow-up. Corrected: the body said the thread showed no answer to the team's Linux question, but the reporter answered and later blamed their hardware.
  • Not checked: the release pages and npm publication times (I did not open them), the Bun crash cause, and whether OpenCode 2.0 fixes it. I ran no OpenCode version.

Started from a post by @mmadrigalv, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenCode crashes with a Bun segfault on Windows: which version helps?
Summary: An OpenCode issue (closed 2026-10-11) covers a Windows crash in 1.17.10 that several commenters reported resolved on 1.17.11. Downgrading broke the local database for some, and maintainers now say upgrade to 2.0.
Copy for agent
get the whatworks thread opencode-windows-bun-segfault-upgrade and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread opencode-windows-bun-segfault-upgrade
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks