opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[BUG] Unable to Load Old Sessions

Open reowens opened this issue 1 month ago • 11 comments

Description

Unable to load in old sessions. Has been a persistent issue since v1.0.2 for me.

Also experiencing the issue in my Docker container.

Those having issues might try disabling auto-update, then rolling back to v0.15.23.

OpenCode version

1.0.2 -> 1.0.23

Steps to reproduce

  1. Launch Opencode
  2. Use /session command
  3. Select Session
  4. Wait to Load
  5. Conversation history flashes and disappears

Screenshot and/or share link

https://github.com/user-attachments/assets/7af5fa66-0b02-4017-b217-25c138f40afa

Operating System

macOS 26.0.1 / Debian Docker Container

Terminal

VS Code + Ghostty

reowens avatar Nov 01 '25 00:11 reowens

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

  • #3026: Same issue with sessions showing empty despite existing in storage after version upgrades (specifically affects v0.14.4+ with sessions from v0.13.x)
  • #2987: Sessions disappearing/being lost entirely after using /compact command
  • #2046: General "Failed to Open Session" error affecting session loading

The symptoms described (conversation history flashing and disappearing when loading old sessions) closely match the session loading issues reported in these other tickets. #3026 is particularly relevant as it identifies the specific version compatibility issue with session loading after API changes.

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Nov 01 '25 00:11 github-actions[bot]

Yes, it did look like an old bug that reappeared.

reowens avatar Nov 01 '25 00:11 reowens

Does it reappear when you scroll up and down?

kommander avatar Nov 01 '25 00:11 kommander

No, but I can continue the chat and the context appears to still be there. Seems like a rendering issue.

reowens avatar Nov 01 '25 01:11 reowens

having this issue as well, however it doesnt load any session at all

luisrudge avatar Nov 01 '25 06:11 luisrudge

running into this too 👍🏽

paralin avatar Nov 02 '25 21:11 paralin

running into this too 👍🏽

I rolled back to v0.15.23 (latest available on brew) and things are working fine again.

reowens avatar Nov 03 '25 04:11 reowens

can you give it another try when you have a moment?

thdxr avatar Nov 04 '25 19:11 thdxr

Working for me now!

paralin avatar Nov 04 '25 22:11 paralin

Not working for me, still the same. 😅

reowens avatar Nov 04 '25 23:11 reowens

@reowens make sure you're on the latest version and perhaps try cleaning storage for opencode as well.

paralin avatar Nov 05 '25 07:11 paralin

Also having the same issue

rafaelsmgomes avatar Nov 06 '25 02:11 rafaelsmgomes

should be good now

thdxr avatar Nov 12 '25 03:11 thdxr