Skip to content

v0.2.0 - Cross-project session search via SQLite

Choose a tag to compare

@chncaesar chncaesar released this 23 Jul 08:02
· 9 commits to main since this release

What's new

feat: cross-project session search via SQLite

Previously, sessionName lookup only found sessions in the current workspace (API-level project filtering). Searching for a session by name from a different project directory always returned empty.

Now: searchSessionsByNameViaSQLite() queries the OpenCode SQLite database directly (~/.local/share/opencode/opencode.db), bypassing project-scoped API filters. Sessions from any project are now findable by title substring.

  • Graceful fallback to API-based search if sqlite3 CLI is unavailable or DB is missing
  • Plugin factory accepts _searchByName injection for testability (no runtime impact)
  • 2 new tests: SQLite path + API fallback path

Upgrade

{ "plugin": ["opencode-session-reflection"] }