OpenCode v1.2.20: Memory Leak & Bun Fixes

OpenCode v1.2.20 fixes a critical memory leak that was consuming 60GB+ during test runs, plus Bun compatibility improvements.

OpenCode v1.2.20: Memory Leak & Bun Fixes

TL;DR

  • Fixed critical fsmonitor daemon leak that consumed 60GB+ of memory during test runs
  • Replaced Bun.which with npm which for better compatibility
  • Restored Bun stdin reads for TUI prompt input

Fixed

  • fsmonitor daemon memory leak — Stopped leaking fsmonitor daemons that caused 60GB+ of committed memory after running tests
  • Bun.which dependency — Replaced Bun.which with npm which for improved compatibility

New

  • Bun stdin reads restored — Re-enabled Bun stdin reads for TUI prompt input

Update with: npm install opencode@1.2.20

Source: OpenCode