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
{{ message }}
Repository navigation
Session conversation history lost after restart on Windows 11 (Atlas) — terminal TUI #33277
When using opencode in the terminal (PowerShell), all conversation history — messages, code changes, tool calls, file edits made during a session — is completely lost after closing and reopening the application. The session either does not appear in the list or appears empty.
This is not about session management (creating/switching sessions). The core issue is that opencode does not persist the conversation content between restarts.
Steps to reproduce
Run opencode in a project directory
Have a conversation (send messages, generate code, edit files)
Close the terminal
Reopen the terminal and run opencode again in the same directory
The previous session and all its content are gone
Expected behavior
All session history — messages, code, tool results, file diffs — should persist and be available after restart via /sessions or opencode session list / opencode session continue.
Actual behavior
Everything from the previous session is lost. No history is available after restart.
Environment
OS: Windows 11 (Atlas variant)
OpenCode version: OpenCode Desktop
v1.17.9
Terminal: PowerShell 5.1
Type: Terminal (CLI/TUI), not Desktop app
Install method: (npm / curl / other)
Related issues #17765 — Windows Desktop loses session history after restart #31716 — Opens wrong project and loses session data #8661 — Session gone missing after collapse
Activity
github-actions commentedon Aug 21, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.