GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cli: sessions created by legacy CLI (1.18.x) don't appear in desktop app's session list (version skew, no warning) · Issue #66191 · anomalyco/opencode

cli: sessions created by legacy CLI (1.18.x) don't appear in desktop app's session list (version skew, no warning) #66191

New issue
Copy link
New issue
Copy link
Duplicate
Duplicate
cli: sessions created by legacy CLI (1.18.x) don't appear in desktop app's session list (version skew, no warning)#66191
Copy link
Labels
area/sessions-storageSessions, history and stored dataplatform/linuxLinuxtype/bugSomething is brokenversion/v2OpenCode 2.x

Description

@yurilimadev
yurilimadev
opened on Nov 24, 2026
Issue body actions

Summary

When the standalone CLI is older than the desktop app, sessions created with
opencode run are written to the legacy session table while the desktop app
lists sessions from session_v2. The session is functional (CLI --continue
finds it) but never appears in the desktop app's session list or search, with
no warning that versions are out of sync.

Environment

  • opencode version: CLI 1.18.34 (~/.opencode/bin/opencode); desktop app running V2 2.x (2.4.x)
  • OS: Fedora 44 (kernel 7.3.4-200.fc44.x86_64, x64)
  • Terminal: Unavailable (no TERM_PROGRAM set; xterm-256color)
  • Shell: /bin/bash
  • Install/channel: standalone binary install at ~/.opencode/bin
  • Active plugins: none

Reproduction

  1. Have a V2 desktop app running and an older V1 standalone CLI on PATH
    (opencode --version → 1.18.34).
  2. From a project directory, run a message in a titled session:
    opencode run --title "My session" "message"
  3. In the desktop app, search the session list for "My session".

Expected Behavior

The session created by opencode run appears in the desktop app's session
list (both belong to the same project directory), and/or the CLI warns that
its version is out of sync with the running desktop service.

Actual Behavior

The session exists only in the legacy storage (session table in
opencode.db); the desktop app reads session_v2 and the search returns
"no sessions found". opencode run -c still works against it, so the user
may assume the session is lost. No error or version-mismatch warning is
shown on either side.

Additional Context

Workaround: create the session directly in the desktop app (context can be
loaded from a handoff file). Upgrading the standalone CLI to V2 should also
align storage. Suggest a lightweight version check between CLI and connected
service with a visible warning (opencode --version vs service version).

Activity

  1. opencodejr commented on Nov 24, 2026

    @opencodejr
    opencodejrBot
    on Nov 24, 2026
    Contributor
    More actions

    Thanks for the clear report. I think this is a duplicate of #50130. That issue describes the same thing: a V1 1.18.x client keeps writing to the shared opencode.db after V2's one-time V1 to V2 import has finished. The new sessions stay in the legacy session table, never reach session_v2, and the V2 app doesn't show them, with no warning.

    Possible duplicates and related issues, ordered by likelihood:

    • server: V1 sessions created after migration.v1-v2 completes are never imported #50130: V1 sessions created after the migration completes are never imported. This is your case. The thread also has recovery steps from other users that brought such sessions into V2 without losing data.
    • session: migrated session missing messages written after V1→V2 migration; export truncated #57000: the related case where V1 messages added to an already-migrated session after the migration are missing in V2.
    • fix(core): do not reuse an unmigrated V1 session ID on create #62014: an open pull request about V1 sessions that were never migrated, from server: V1 sessions created after migration.v1-v2 completes are never imported #50130.
    • migrate-v1: non-git sessions in "global" project hidden after V1→V2 upgrade #49827: a different shape, where V1 sessions were imported but don't appear in the project's session list.

    Your legacy sessions are still in opencode.db, so please don't delete or reset it. I'm closing this issue now as a duplicate of #50130. Please add your details there, including your idea of a version-mismatch warning. If you think this is a different problem, reply here and the issue will reopen.

  2. opencodejr
    closed this as a duplicateof server: V1 sessions created after migration.v1-v2 completes are never imported #50130 on Nov 24, 2026
  3. opencodejr
    added
    area/sessions-storageSessions, history and stored data
    platform/linuxLinux
    type/bugSomething is broken
    version/v2OpenCode 2.x
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/sessions-storageSessions, history and stored dataplatform/linuxLinuxtype/bugSomething is brokenversion/v2OpenCode 2.x

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.