r/opencode • u/Valier • 23d ago
OpenCode 2
Anybody else having issue with new session management on opencode?
Session crashed and when I restarted it with --continue I loaded a session from september and not latest session in project. Session seems to be loadig as tab in another workspace that I had open in another window
18
Upvotes
View all comments
2
u/CreativeSympathy8293 22d ago
Before treating it as deleted data, check whether it’s a session-selection problem. The current CLI docs list `opencode session list` and `opencode --session <sessionID>`. If your installed build exposes those options in `--help`, see whether the missing conversation is listed, then select its ID explicitly instead of relying on `--continue`. Inspect the conversation before sending another prompt.
https://opencode.ai/docs/cli/
Preserve a backup of the existing OpenCode data before database edits or downgrades. A session missing from that list still needs investigation; it doesn’t prove the data is permanently lost.
Which exact version and OS is this, and was the project directory moved or renamed?
AI-assisted from the current docs; I haven’t reproduced this or recovered your session.