You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
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
Activity
github-actions commentedon Feb 10, 2026
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 usefileorhexdumpcommands like shown in #9673).This will help maintainers understand if it's the same root cause or a separate issue.
CourageCowardly commentedon Feb 10, 2026
session metadata file exists and contains valid json
.local\share\opencode\storage\session\global\ses_3db4e774affeaeuvrQqQi3Dms5.json
size: 355b
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
github-actions commentedon Apr 11, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.