Skip to content

Session history disappears and archived sessions are difficult to restore #26505

Closed as not planned

Description

@pratham-107

Question

Problem

I am facing issues with session history management in OpenCode.

Issue 1: Session history not visible

After working in OpenCode and closing the terminal/app, my previous session history was no longer visible in the sidebar or session list.

Commands like:

opencode session list

returned no sessions.

Also:

opencode --continue

showed:

Continue  opencode -s undefined

even though the local database file still exists:

~/.local/share/opencode/opencode.db

This makes it difficult to recover previous work sessions.


Issue 2: Archived sessions disappear from sidebar

I later realized that one of my sessions was archived accidentally.

After archiving:

  • the session disappeared completely from the sidebar
  • there was no obvious “Archived Sessions” section
  • session recovery/discovery was confusing

It would be helpful if:

  • archived sessions were easier to access
  • there was a visible archive section/filter
  • users received a clearer indication that the session was archived and not deleted

Expected behavior

  • Sessions should remain visible and recoverable after reopening OpenCode
  • opencode --continue should properly restore the last session
  • Archived sessions should be easy to find and restore
  • Session management UX should be clearer

Environment

  • OS: Windows
  • Terminal: Git Bash (MINGW64)
  • OpenCode installed via terminal installer
  • Local database exists at:
~/.local/share/opencode/opencode.db

Activity

  1. github-actions commented on May 9, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Please review these issues to see if your report is already covered. If so, adding a comment or reaction there helps maintainers prioritize the fix.

  2. SharkDriver commented on May 17, 2026

    @SharkDriver

    Please somebody implement "unarchive" in desktop.

  3. rekram1-node commented on Jun 23, 2026

    @rekram1-node
    Contributor

    Automated: closing question issues.

    GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.

    If this is a bug or feature request, please open a new issue with the appropriate template.

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