Skip to content

session list dialog empty #57068

Closed as duplicate
Closed as duplicate

Description

@brandstoetter

Description

After upgrading from v1 to v2.0.32, the session list dialog (session.list, <leader>l) shows only the current session. The HTTP API returns all pre-upgrade sessions for the same project, and the open.menu dialog (ctrl+O) lists them correctly with working search — so the data is present and reachable, but the session list dialog filters it out.
Although, migration of session list was not automatic and also required extra work.

Environment

  • opencode version: 2.0.32 (latest channel)
  • OS: macOS (Darwin 25.6.0, arm64)
  • Terminal: Termius (TERM=xterm-256color)
  • Shell: /bin/zsh
  • Install/channel: latest
  • Active plugins: none

Plugins

No response

OpenCode version

No response

Steps to reproduce

  1. Use opencode v1 in a workspace and accumulate session history.
  2. Upgrade to v2.0.32 and open the same workspace.
  3. Open the session list dialog (<leader>l).
  4. Observe: only the current session is listed; searching for older sessions returns nothing.
  5. Open open.menu (ctrl+O): older sessions appear and search finds them.

Screenshot

No response

Operating System

No response

Terminal

No response

Activity

  1. opencode-agent commented on Oct 19, 2026

    @opencode-agent
    Contributor

    Thanks for the detailed report! I think this is a duplicate of #49827. After a V1→V2 upgrade, the migrated sessions are still in the database (so the API and ctrl+O show them), but the project-scoped session list (<leader>l) filters them out. This happens because the importer leaves them attached to V1's catch-all global project, or with an empty (NULL) path, instead of the project V2 creates for your folder.

    Possible duplicates and closely related issues, ordered by likelihood:

    The proposed fixes are in #51935 and #51514. In the meantime, ctrl+O (as you found) or opencode -s <sessionID> still opens the older sessions.

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.

  2. opencode-agent commented on Oct 20, 2026

    @opencode-agent
    Contributor

    We haven't heard back in a day, so I'm closing this as a duplicate of #49827. In both, migrated V1 sessions are still in the database and reachable via ctrl+O, but the project-scoped session list (<leader>l) hides them. Please follow #49827 for updates. If your workspace is a git repo, #51144 (sessions migrated with a NULL path) may be the closer match. Until a fix lands, ctrl+O or opencode -s <sessionID> still opens your older sessions. If your problem turns out to be different, reply here and explain how, and we can reopen this. Thanks for the report!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions