OpenCode Version
1.17.14
Reproduction Steps
- Have OpenCode v1.17.13 installed and used for several weeks, accumulating many sessions.
- Allow OpenCode to auto-update to v1.17.14 (or restart it after it updates itself).
- Start OpenCode:
opencode --port 36996
- Observe that the server either crashes with
JSON.parse(...).map is not a function or starts but historical sessions open to a blank conversation pane.
- Check
~/.local/share/opencode/opencode.db: message and part tables still contain all data, but session_message / session_input / session_context_epoch are empty.
Expected Behavior
After an automatic update, all previously existing sessions and their conversation history should remain visible and readable in the TUI. Data that is still present in opencode.db should be migrated or continue to be read by the new version.
Actual Behavior
- The TUI shows the session list, but every historical session opens with no messages.
- The underlying
message/part data is preserved, suggesting a regression in how v1.17.14 loads legacy session data rather than actual data loss.
Screenshots / Share Links
N/A — the issue is reproducible from the local database state. Relevant logs and DB dumps can be provided on request.
Operating System
Linux (OpenCode binary running on a remote Linux workstation, accessed via SSH)
Terminal
SSH terminal (issue reproduces regardless of local terminal emulator)
OpenCode Version
1.17.14
Reproduction Steps
opencode --port 36996JSON.parse(...).map is not a functionor starts but historical sessions open to a blank conversation pane.~/.local/share/opencode/opencode.db:messageandparttables still contain all data, butsession_message/session_input/session_context_epochare empty.Expected Behavior
After an automatic update, all previously existing sessions and their conversation history should remain visible and readable in the TUI. Data that is still present in
opencode.dbshould be migrated or continue to be read by the new version.Actual Behavior
message/partdata is preserved, suggesting a regression in how v1.17.14 loads legacy session data rather than actual data loss.Screenshots / Share Links
N/A — the issue is reproducible from the local database state. Relevant logs and DB dumps can be provided on request.
Operating System
Linux (OpenCode binary running on a remote Linux workstation, accessed via SSH)
Terminal
SSH terminal (issue reproduces regardless of local terminal emulator)