Skip to content

Title: Desktop sidebar hides sessions where session.version = 'local' #27539

Closed as not planned

Description

@Aigle-2

Description

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

  1. Create a session via CLI or dev build (version gets set to 'local')
  2. Check the database: session.version = 'local'
  3. Open Desktop app
  4. The session does not appear in the sidebar

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

No response

Activity

  1. FloWWWWWWFS commented on Jun 25, 2026

    @FloWWWWWWFS

    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.

  2. github-actions commented on Aug 25, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions