Repository navigation
v0.2.0 - Cross-project session search via SQLite
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
sqlite3CLI is unavailable or DB is missing - Plugin factory accepts
_searchByNameinjection for testability (no runtime impact) - 2 new tests: SQLite path + API fallback path
Upgrade
{ "plugin": ["opencode-session-reflection"] }