You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Title: Desktop sidebar hides sessions where session.version = 'local' #27539
Sessions created with version = 'local' (from dev/CLI builds) exist in opencode.db
but don't appear in the OpenCode Desktop sidebar, even though they exist in the database.
Root Cause:
The Desktop UI appears to filter sessions by version number, excluding rows where
session.version = 'local'.
Workaround:
Update all session.version = 'local' rows to the current app version (e.g., '1.14.48')
Plugins
No response
OpenCode version
1.14.50
Steps to reproduce
Create a session via CLI or dev build (version gets set to 'local')
Confirming on Desktop 1.17.9 (Windows 11) — and notably not just CLI/dev builds.
Every session created through the packaged Desktop app gets version = 'local'
and is therefore hidden from the sidebar after a restart, even though it persists
fine. No opencode CLI involved here.
Evidence:
All sessions are present in ~/.local/share/opencode/opencode.db (session
table, messages in message/part) — nothing is lost.
SELECT version FROM session → every row is 'local'.
The Desktop even keeps per-session state in %APPDATA%/ai.opencode.desktop/opencode.workspace.*.dat
(workspace:model-selection lists each session id), so the app clearly knows
the sessions exist — only the sidebar list filters them out.
Sessions were created via a custom OpenAI-compatible provider in opencode.jsonc (Ollama Cloud, direct https://ollama.com/v1).
So the version filter makes the sidebar appear empty on every restart for normal
end users of the Desktop build, not only local/dev sessions.
Activity
FloWWWWWWFS commentedon Jun 25, 2026
Confirming on Desktop 1.17.9 (Windows 11) — and notably not just CLI/dev builds.
Every session created through the packaged Desktop app gets
version = 'local'and is therefore hidden from the sidebar after a restart, even though it persists
fine. No
opencodeCLI involved here.Evidence:
~/.local/share/opencode/opencode.db(sessiontable, messages in
message/part) — nothing is lost.SELECT version FROM session→ every row is'local'.%APPDATA%/ai.opencode.desktop/opencode.workspace.*.dat(
workspace:model-selectionlists each session id), so the app clearly knowsthe sessions exist — only the sidebar list filters them out.
opencode.jsonc(Ollama Cloud, directhttps://ollama.com/v1).So the version filter makes the sidebar appear empty on every restart for normal
end users of the Desktop build, not only
local/dev sessions.github-actions commentedon Aug 25, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.