OpenCode v1.2.0: SQLite Migration & PartDelta Events

OpenCode v1.2.0 migrates data to SQLite, adds PartDelta events for SDK efficiency, and fixes VPN timeouts and desktop performance issues.

OpenCode v1.2.0: SQLite Migration & PartDelta Events

TL;DR

  • Data migration to SQLite runs on first launch — may take time depending on your data volume
  • New PartDelta event sends only incremental changes, reducing SDK bandwidth overhead
  • Desktop performance improvements for large diffs and files; VPN timeout fixes
  • Breaking: timeout config moved from API to CLI flag; OPENCODE_SQLITE env var removed

New

  • PartDelta event — SDK now sends only incremental text changes instead of full part content on updates, cutting unnecessary data transmission
  • --dir option for run command — specify working directory directly from CLI

Fixed

  • Malformed tool input crash — opencode run no longer crashes when tool inputs are malformed
  • VPN/tunnel timeouts — switched to prompt_async endpoint to prevent hangs over slow connections
  • Terminal resize handling — desktop app now properly handles terminal resize events
  • Large diff performance — optimized rendering of large diffs and files in desktop application
  • Server URL changes — SDK remounts and tree syncs correctly when server URL changes
  • Rust compilation issues — fixed desktop build failures

Breaking Changes

  • Timeout configuration — moved from programmatic API to CLI flag; update your scripts accordingly
  • OPENCODE_SQLITE removed — environment variable no longer used in desktop app
  • Data migration required — flat files migrate to SQLite on first run. If migration fails, delete ~/.local/share/opencode/opencode.db* (or %APPDATA% on Windows) to retry. Original data is preserved if you need to downgrade

Update: npm install opencode@1.2.0 or check the release page for platform-specific downloads.

Source: OpenCode