Skip to content

session not found #12885

Closed
Closed

Description

@CourageCowardly

Description

i am encountering a critical issue where a specific session becomes permanently inaccessible with a "Session not found" error. this happened after i exited opencode and returned a few hours later. once this error occurs for a session, it is permanent. i cannot access that specific session anymore, no matter how many times i "restart" or try to select it or restarrt backend. the session appears in the list, but selecting it always fails. i always will in one dir, and have fews sessions

Plugins

n/a

OpenCode version

1.1.53

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11 25h2

Terminal

windows terminal

Activity

  1. github-actions commented on Feb 10, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of or related to existing session corruption issues. Please check:

    These issues describe similar symptoms where session files become corrupted and inaccessible. If you haven't already, please check the session files in your ~/.local/share/opencode/storage/ directory to see if they've been corrupted (you can use file or hexdump commands like shown in #9673).

    This will help maintainers understand if it's the same root cause or a separate issue.

  2. CourageCowardly commented on Feb 10, 2026

    @CourageCowardly
    Author

    session metadata file exists and contains valid json
    .local\share\opencode\storage\session\global\ses_3db4e774affeaeuvrQqQi3Dms5.json
    size: 355b

    {
      "id": "ses_3db4e774affeaeuvrQqQi3Dms5",
      "slug": "cosmic-star",
      "version": "1.1.49",
      "projectID": "global",
      "directory": "@dir",
      "title": "im here",
      "time": {
        "created": 1770142140597,
        "updated": 1770676260058
      },
      "summary": {
        "additions": 0,
        "deletions": 0,
        "files": 0
      }
    }
    

    session diff/state is empty/wiped. file responsible for session state/diffs appears to be wiped or reset to an empty array.
    .local\share\opencode\storage\session_diff\ses_3db4e774affeaeuvrQqQi3Dms5.json
    size: 2b
    [](empty json array) chat history is intact, message history for this session is fully preserved on disk .local\share\opencode\storage\message\ses_3db4e774affeaeuvrQqQi3Dms5\ contains 1302 message files (json), indicating a long-running and valuable session.

    last 2 lines logs

    ERROR 2026-02-09T23:55:40 +1ms service=server error=Unexpected end of JSON input failed
    INFO  2026-02-09T23:55:40 +0ms service=server status=completed duration=8 method=GET path=/session/ses_3db4e774affeaeuvrQqQi3Dms5/message request
    
  3. github-actions commented on Apr 11, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 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

bugSomething isn't workingwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions