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 list is empty on page load in web UI · Issue #30166 · anomalyco/opencode

Sessions list is empty on page load in web UI #30166

New issue
Copy link
New issue
Copy link
Closed
#30167
Closed
Sessions list is empty on page load in web UI#30166
#30167
Copy link
Assignees
Brendonovich

Description

@mhart
mhart
opened on Jun 1, 2026
Issue body actions

Description

Loading a project shows an empty list of sessions. Clicking on another project shows the correct list of sessions. Performing a page reload on the new project will then show an empty list of sessions – and clicking on the first project from there now does show a list of sessions.

First instinct was an SSR/hydration bug, but my clanker reckons:

The main bug is a client-side boot race, not SSR.

packages/app/src/pages/layout/helpers.ts:27-30 hides root sessions unless session.directory === store.path.directory.
packages/app/src/context/global-sync/child-store.ts:206-209 is returning an empty path.directory until the TanStack Query path request resolved.
packages/app/src/context/server-sync.tsx:237-291 can load sessions before that path is ready.

So on first page load, the current project could already have store.session populated, but sortedRootSessions() filters everything out because store.path.directory is still empty. After client navigation, the path query resolves, so the same sessions becomes visible.

This likely came from the Apr 20 loading refactor, 687b758 (app: better loading (#23489)), when child-store path became query-backed async state.

Plugins

No response

OpenCode version

Latest dev branch, running locally (including web UI)

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

No response

Terminal

No response

Activity

  1. github-actions
    assigned
    Brendonovich
    on Jun 1, 2026
  2. github-actions commented on Jun 1, 2026

    @github-actions
    github-actionsBot
    on Jun 1, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • SortableWorkspace session list empty due to store.path.directory not bootstrapped #21441: Same root cause — store.path.directory not bootstrapped when sortedRootSessions() filters sessions, causing an empty session list in the web UI. Your analysis even references the same files (child-store.ts).
    • Web UI: session list empty on left panel when using web server mode #27837: Web UI session list empty on left panel when using web server mode — similar symptom.

    If your issue is distinct, please add clarifying details explaining the difference.

  3. Hona
    closed this as completedin #30167on Jun 1, 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.