OpenCode v1.2.1: SQLite Migration & PartDelta Events

OpenCode v1.2.1 ships SQLite migration and PartDelta events for SDK users. One-time data conversion on first run—plan accordingly if you have large datasets.

OpenCode v1.2.1: SQLite Migration & PartDelta Events

TL;DR

  • Flat file data migrates to SQLite on first run — may take time depending on your dataset
  • New PartDelta event for SDK users sends only incremental changes, not full content
  • Original data preserved during migration; downgrade works if something breaks

New

  • PartDelta event — SDK users now get incremental-only updates for text parts instead of full content resends, reducing bandwidth overhead
  • Project sessions from any directory — view all sessions regardless of working directory context

Fixed

  • Websearch tool description tweaked to prevent cache busts from date info

Breaking Changes

  • SQLite migration on first run — all flat files in your data directory convert to a single SQLite database. This is one-time only but can take time with large datasets. If migration fails, delete ~/.local/share/opencode/opencode.db* files (%APPDATA% on Windows) to retry. Original data stays intact until you confirm the migration works, so downgrading is safe if needed. Open an issue with "sqlite" in the title if you hit problems.

Update via: npm install -g opencode@latest or check the release page

Source: OpenCode