Skip to content

Session conversation history lost after restart on Windows 11 (Atlas) — terminal TUI #33277

Closed as not planned

Description

@Ezequiel-CrownTech

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

  1. github-actions commented on Aug 21, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions