GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Sessions created in Desktop app are not visible in CLI TUI session list · Issue #29071 · anomalyco/opencode

Sessions created in Desktop app are not visible in CLI TUI session list #29071

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Sessions created in Desktop app are not visible in CLI TUI session list#29071
Copy link
Assignees
kommander

Description

@hmannekomimi-ctrl2
hmannekomimi-ctrl2
opened on May 24, 2026
Issue body actions

Description

Sessions created in OpenCode Desktop (Electron app) do not appear in the CLI TUI session list ("Switch session" dialog) when running opencode in the terminal.

Conversely, sessions created in the CLI are visible in the Desktop app. The data is not lost — running opencode export confirms all sessions exist in the shared database.

Steps to Reproduce

  1. Create a session in OpenCode Desktop app
  2. Open the CLI version (opencode command)
  3. Open the "Switch session" dialog
  4. The Desktop-created session does not appear in the list

Expected Behavior

Since the Desktop and CLI share the same database (~/.local/share/opencode/opencode.db), sessions created in either interface should be visible in both.

Root Cause

The CLI TUI session list has directory filtering enabled by default (session_directory_filter_enabled: true), which filters sessions by path (a relative path from the worktree root):

// packages/opencode/src/cli/cmd/tui/context/sync.tsx
function sessionListQuery(): { scope?: "project"; path?: string } {
  if (!kv.get("session_directory_filter_enabled", true)) return { scope: "project" }
  // ...
  return {
    path: path.relative(
      path.resolve(project.data.instance.path.worktree),
      project.data.instance.path.directory
    ).replaceAll("\\", "/"),
  }
}

Meanwhile, the Desktop app retrieves sessions using directory (absolute path) + roots: true, which results in a different path resolution for sessions created in the Desktop app. This mismatch causes Desktop-created sessions to be filtered out of the CLI TUI session list.

Workaround

Add the following to ~/.local/state/opencode/kv.json:

{
  "session_directory_filter_enabled": false
}

This disables directory filtering and shows all sessions within the project.

Suggested Fixes

  1. Change the default for session_directory_filter_enabled to false
  2. Unify path resolution between Desktop and CLI so sessions created in either interface share the same path value
  3. Show filtered-out sessions in a separate "Other sessions" section in the CLI TUI session list

Related Issues

  • [BUG][Windows][global project] Root directory sessions can disappear after a new session is created from another client because session matching is still path-format sensitive #17183 — Path format mismatch causes directory filter to hide sessions on Windows
  • [Windows] Web UI not showing sessions - path separator mismatch (backslash vs forward slash) #21340 — Web UI not showing sessions due to path separator mismatch (backslash vs forward slash)

Environment

  • OS: Windows 11
  • OpenCode CLI: v1.15.10 (installed via Scoop)
  • OpenCode Desktop: v1.15.10
  • DB path: ~/.local/share/opencode/opencode.db

Note: This issue was drafted with AI assistance (OpenCode + GLM-5.1) and reviewed by the human reporter.

Reacted by Vitech, hanru, Lawrence and M3LAR

Activity

  1. hmannekomimi-ctrl2 commented on May 24, 2026

    @hmannekomimi-ctrl2
    hmannekomimi-ctrl2
    on May 24, 2026
    Author
    More actions

    Related to #17183 and #21340 — these issues describe the same underlying problem (path format / path separator mismatch causing directory filtering to hide sessions). This issue focuses specifically on the session_directory_filter_enabled default causing Desktop-created sessions to be invisible in the CLI TUI, with a documented workaround and suggested fixes.

  2. github-actions
    assigned
    kommander
    on May 24, 2026
  3. github-actions commented on May 24, 2026

    @github-actions
    github-actionsBot
    on May 24, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of an existing issue. Please check:

    • [Workspaces/UX] Session list silently filtered when inside workspace context #27286: Session list silently filtered when inside workspace context — covers the same session_directory_filter_enabled behavior causing sessions to be hidden in the TUI session list
  4. Drewlius commented on Jul 7, 2026

    @Drewlius
    Drewlius
    on Jul 7, 2026
    More actions

    I would like to see this finally resolved there has been no developer comment on this thread yet, however this is a blatant issue effecting every linux distro I have used opencode on and is unavoidable when working with their ecosystem of applications. How this doesn't annoy one of the developers to the point of fixing is beyond me but it really should be fixed and according to the previous users troubleshooting it seems like an easy fix that results in no immediately present downsides.

    Reacted by creativeincode and Tristan Koch
  5. github-actions commented on Sep 6, 2026

    @github-actions
    github-actionsBot
    on Sep 6, 2026 – with GitHub Actions
    Contributor
    More actions

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

    Reacted by Marco Lazzarotto, Joaquín Bermúdez Castanheira, Tristan Koch and M3LAR
  6. github-actions
    closed this as not plannedon Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kommander
    kommander

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.