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 — fix(app): show project sessions before path sync resolves by mhart · Pull Request #30167 · anomalyco/opencode

Conversation

@mhart

@mhart mhart commented Jun 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Session lists in the web UI filter root sessions against store.path.directory. After the sync loading refactor, that path could still be empty on initial page load even when loadSessions() had already populated the child store.

That caused the current project to appear empty until a later client navigation warmed the directory state.

Fall back to the requested directory/worktree until the path query resolves, and add a regression test for the child store path fallback.

Issue for this PR

Closes #30166

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Fall back to the requested directory/worktree until the path query resolves, and add a regression test for the child store path fallback.

How did you verify your code works?

Ran it locally

Screenshots / recordings

Current behaviour on page load:
Screenshot 2026-06-01 at 1 28 48 pm

Behaviour with this PR on page load:
Screenshot 2026-06-01 at 1 29 44 pm

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

group6digital reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@mhart
fix(app): show project sessions before path sync resolves
df494b7
Fixes anomalyco#30166

Session lists in the web UI filter root sessions against `store.path.directory`. After the sync loading refactor, that path could
still be empty on initial page load even when `loadSessions()` had already populated the child store.

That caused the current project to appear empty until a later client
navigation warmed the directory state.

Fall back to the requested directory/worktree until the path query resolves, and add a regression test for the child store path fallback.
@mhart
mhart requested a review from adamdotdevin as a code owner June 1, 2026 03:26
@github-actions github-actions Bot added the contributor label Jun 1, 2026
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

The search found several related PRs about session filtering and directory scoping, but none appear to be duplicates of PR #30167. The most relevant related PRs are:

  • PR fix(tui): scope session list to current worktree directory #29026 - fix(tui): scope session list to current worktree directory - Similar filtering logic but for TUI
  • PR fix(tui): show home sessions in global project #29582 - fix(tui): show home sessions in global project - Related to session display in projects
  • PR fix(opencode): enforce storage path invariants #29666 - fix(opencode): enforce storage path invariants - Related to path handling

However, these are in different contexts (TUI vs app) or address different aspects of path/session handling. They don't appear to be duplicates of PR #30167, which specifically addresses the web UI session list appearing empty until path sync completes.

No duplicate PRs found

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Hona
fix(app): keep unresolved child path metadata truthful
8aaa67c
@Hona
Hona merged commit 2725eed into anomalyco:dev Jun 1, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Hona Hona mentioned this pull request Jun 2, 2026
fix(app): avoid suspending on pending child path #30314
Merged
3 of 6 tasks
isaacfinnegan pushed a commit to isaacfinnegan/whispercode that referenced this pull request Jun 15, 2026
@mhart @Hona
fix(app): show project sessions before path sync resolves (anomalyco#…
a99c42b
…30167)

Co-authored-by: LukeParkerDev <[email protected]>
@atongrun atongrun mentioned this pull request Jul 4, 2026
[Regression] v1.17.13 web UI session list still empty — fixes from #30167/#30314/#30804 not cherry-picked to stable #35340
Closed
@nishit130 nishit130 mentioned this pull request Jul 27, 2026
[Regression v1.18.3] Web UI sidebar empty, "Nothing here yet" despite /api/session returning 1,125 sessions #39040
Closed
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
@mhart @Hona
fix(app): show project sessions before path sync resolves (#30167)
a8c8eaf
Co-authored-by: LukeParkerDev <[email protected]>
@nexus-gitss nexus-gitss mentioned this pull request Aug 6, 2026
Web UI does not work: no sessions shown, "New session" unresponsive #40815
Closed
dnasdw pushed a commit to dnasdw/opencode that referenced this pull request Aug 25, 2026
@mhart @Hona @dnasdw
fix(app): show project sessions before path sync resolves (anomalyco#…
e7a82b5
…30167)

Co-authored-by: LukeParkerDev <[email protected]>
dnasdw pushed a commit to dnasdw/opencode that referenced this pull request Aug 25, 2026
@mhart @Hona @dnasdw
fix(app): show project sessions before path sync resolves (anomalyco#…
7e4e432
…30167)

Co-authored-by: LukeParkerDev <[email protected]>
dnasdw pushed a commit to dnasdw/opencode that referenced this pull request Aug 25, 2026
@mhart @Hona @dnasdw
fix(app): show project sessions before path sync resolves (anomalyco#…
92194b4
…30167)

Co-authored-by: LukeParkerDev <[email protected]>
dnasdw pushed a commit to dnasdw/opencode that referenced this pull request Aug 25, 2026
@mhart @Hona @dnasdw
fix(app): show project sessions before path sync resolves (anomalyco#…
f332b32
…30167)

Co-authored-by: LukeParkerDev <[email protected]>
dnasdw pushed a commit to dnasdw/opencode that referenced this pull request Aug 25, 2026
@mhart @Hona @dnasdw
fix(app): show project sessions before path sync resolves (anomalyco#…
52e1bed
…30167)

Co-authored-by: LukeParkerDev <[email protected]>
dnasdw pushed a commit to dnasdw/opencode that referenced this pull request Aug 25, 2026
@mhart @Hona @dnasdw
fix(app): show project sessions before path sync resolves (anomalyco#…
3f8e388
…30167)

Co-authored-by: LukeParkerDev <[email protected]>
dnasdw pushed a commit to dnasdw/opencode that referenced this pull request Aug 25, 2026
@mhart @Hona @dnasdw
fix(app): show project sessions before path sync resolves (anomalyco#…
3fcaecc
…30167)

Co-authored-by: LukeParkerDev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@adamdotdevin adamdotdevin Awaiting requested review from adamdotdevin

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Sessions list is empty on page load in web UI

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@mhart @Hona
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.