OpenCode v1.2.19: Bun Runtime Compatibility Fixes
v1.2.19 replaces Bun-specific APIs with Node.js equivalents across core, TUI, and desktop. Adds GPT-5.4 support and fixes stale state display bugs.
TL;DR
- Replaced Bun-specific APIs with Node.js equivalents across core, TUI, and desktop modules
- Added GPT-5.4 to Codex allowed models list
- Fixed stale state display in desktop app and improved file tab loading
New
- GPT-5.4 support — Added to Codex allowed models list for expanded LLM options
Fixed
- Stale show in app — Desktop app no longer displays stale state when switching sessions
- File tab loading — Tabs now load properly when opening files from the sidebar
Changed
- Bun.stderr and Bun.color — Replaced with Node.js equivalents for better runtime compatibility
- Bun.connect — Swapped for net.createConnection to improve cross-platform support
- Hash implementation — Switched from unsupported xxHash3-XXH64 to SHA1 for consistency
- Bun.write — Replaced with Filesystem utilities in config and snapshot handling
- Bun.sleep — Migrated to Node.js timers for better compatibility
- stdin reading — TUI now uses node:stream/consumers instead of Bun.stdin.text
Update with: npm install opencode@1.2.19 or check the release page for your package manager.
Source: OpenCode