Skip to content

tui: session becomes stale after restarting opencode #38852

Closed as not planned
Closed as not planned

Description

@magoz

Summary

Restarting opencode leaves the previously active session stale. Continuing requires opening a
new opencode instance, running /session, and manually reattaching to the session.

Environment

  • opencode version: opencode2 v0.0.0-next-16197
  • OS: Darwin 25.4.0 arm64
  • Terminal: tmux (TERM=tmux-256color, COLORTERM=truecolor)
  • Shell: /bin/zsh
  • Install/channel: next/beta
  • Active plugins: Unavailable: omitted at reporter request

Reproduction

  1. Open opencode and start or resume a session.
  2. Restart opencode.
  3. Attempt to continue using the previously active session.
  4. Observe that the session is stale.
  5. Open a new opencode instance, run /session, and reattach to the original session.

Expected Behavior

After restarting, opencode should restore or reconnect to the active session automatically and
allow it to continue normally.

Actual Behavior

The session becomes stale after restart. The only known workaround is to open a new opencode
instance, run /session, and manually reattach to the original session.

Additional Context

  • Workaround: start a new opencode instance and reattach through /session.
  • No error output or logs were captured.

Activity

  1. github-actions commented on Sep 24, 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.

  2. robclancy commented on Oct 15, 2026

    @robclancy

    I fucking hate your fucking github actions on these issues. Every damn time I see an issue it's auto closed.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions