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 — Web UI session list shows only New session + Load more for a directory with existing sessions · Issue #30801 · anomalyco/opencode

Web UI session list shows only New session + Load more for a directory with existing sessions #30801

New issue
Copy link
New issue
Copy link
Closed
#30804
Closed
Web UI session list shows only New session + Load more for a directory with existing sessions#30801
#30804
Copy link
Assignees
Brendonovich

Description

@rexdotsh
rexdotsh
opened on Jun 4, 2026
Issue body actions

Description

In the web UI, a project/worktree can have existing sessions returned by the API, but the sidebar renders only New session and Load more. Clicking Load more makes a request, but no session rows appear. The list endpoint was returning session records for the project, but the sidebar stayed empty.

Root cause appears to be Session.list() / listByProject() ignoring the explicit directory filter when experimental workspaces are enabled:

} else if (input.scope !== "project" && !input.experimentalWorkspaces) {
  if (input.directory) {
    conditions.push(eq(SessionTable.directory, input.directory))
  }
}

With experimental workspaces on, GET /session?directory=...&roots=true&limit=... can return project-wide sessions instead of sessions for the requested directory. The web sidebar then client-filters by exact session.directory, so if the loaded page contains sessions from other worktrees/directories, the visible list is empty while sessionTotal still makes Load more appear.

Plugins

None

OpenCode version

1.15.13

Steps to reproduce

  1. Use a git project with multiple worktrees/directories that have historical sessions in the database.
  2. Enable/use the web UI with experimental workspaces behavior.
  3. Open one worktree/directory in the web UI.
  4. Observe the left session sidebar.

Screenshot and/or share link

chrome_t6ztZ0DWtg.mp4

Operating System

Ubuntu 22.04

Terminal

Ghostty

Activity

  1. github-actions
    assigned
    nexxeln
    on Jun 4, 2026
  2. weeta-code commented on Jun 4, 2026

    @weeta-code
    weeta-code
    on Jun 4, 2026
    More actions

    Confirming this on a fresh setup, and adding a regression window + workaround that may help bisect.

    Regression: works on 1.15.7, broken on 1.15.13

    Same symptom exactly — sidebar renders only New session + Load more, clicking Load more does nothing, while the API returns the sessions fine. Verified the data is present server-side:

    GET /experimental/session?directory=/home/vectors&limit=10   -> 10 correct active sessions
    GET /session?directory=/home/vectors&limit=500               -> all 209 sessions
    

    So the backend has the data; the sidebar just renders empty — consistent with your Session.list() / exact-directory client-filter analysis.

    Topology that triggers it: ~200 sessions tagged directory=/home/vectors that all live under the global project (worktree: "/"). i.e. the session directory differs from the project worktree, so the experimental-workspaces path returns project-wide rows and the client filter by exact session.directory empties the visible list.

    Frontend bundle confirms it's a web-UI–side change

    Version Served bundle Sidebar
    1.15.13 /assets/index-Celomlsk.js broken
    1.15.7 /assets/index-OWaaLVms.js works

    Reproduced across multiple browsers and devices (rules out stale localStorage/service-worker client state).

    Workaround

    Downgrade and pin until this lands:

    curl -fsSL https://opencode.ai/install | bash -s -- --version 1.15.7
    # opencode.json:  "autoupdate": false
    systemctl --user restart opencode-serve   # or however you run the server

    Models still come from the live registry after downgrading, so nothing recent is lost there.

    Likely-related: #30006, #30333, #24850.

  3. nexxeln
    assigned
    Brendonovich
    and unassigned
    nexxeln
    on Jun 5, 2026
  4. Hona
    closed this as completedin #30804on Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Brendonovich
    Brendonovich

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.