Skip to content

cli: continuing a displayed session returns Session not found #37919

Description

@Kristijan-K

Summary

The TUI displays a Continue command for an existing session, but running the suggested command immediately fails because the session cannot be found. This prevents continuing the session from the provided command.

Environment

  • opencode version: opencode2 v0.0.0-next-15853
  • OS: Linux 7.1.3-arch1-3, x86_64
  • Terminal: TERM=xterm-256color, COLORTERM=truecolor; terminal application unavailable
  • Shell: /usr/bin/bash
  • Install/channel: OpenCode 2.0 preview, next
  • Active plugins: /home/kkosu/.opencode/plugins/graphify.js; no project-configured plugins

Reproduction

  1. Start OpenCode 2 in /home/kkosu/Projects/Eco3.

  2. End or leave an active session so the TUI displays the Continue command.

  3. Run the exact command displayed by the TUI:

    opencode -s ses_080a90511ffe0Nddg5kYCCeD3E
    

Expected Behavior

The displayed session should be found and reopened so the conversation can continue.

Actual Behavior

OpenCode immediately exits with:

Error: Session not found: ses_080a90511ffe0Nddg5kYCCeD3E

Additional Context

The session ID and command were copied from the TUI's Continue prompt. The attached screenshot shows the TUI displaying the same session ID and the resulting error.

The project contains only a skills-path configuration:

{
  "$schema": "https://opencode.ai/config.json",
  "skills": {
    "paths": [".opencode/skills"]
  }
}

Reproducibility beyond this attempt is currently unknown. No workaround has been confirmed.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions