Skip to content

Fix sessions missing from expanded projects - #80

Merged
Fectivnfy112357 merged 2 commits into
mainfrom
fix/session-tree-display
Dec 4, 2026
Merged

Fectivnfy112357 merged 2 commits into
mainfrom
fix/session-tree-display

Conversation

@Fectivnfy112357

Copy link
Copy Markdown
Contributor

Problem

Project records cover the full catalog, but session rows initially contain only the first global page. Opening a project whose sessions are on a later page therefore shows an empty list until the user happens to load more projects.

Change

When a project is explicitly opened, load subsequent session pages until it has an initial batch or the catalog is exhausted. Stop after a failed cursor instead of retrying indefinitely, and retain existing project disclosure behavior.

Verification

  • pnpm build:webui
  • pnpm --filter @mavis/webui typecheck:client
  • pnpm exec vitest run --config vitest.oss.config.mjs packages/webui/test/unit/session-rail-search.test.ts (32 passed)
  • pnpm exec playwright test packages/webui/test/browser/rail-search.spec.mjs --reporter=line (8 passed; fixture-backed browser transport)
  • Linux: candidate service on a separate port with a consistent snapshot of the local session database. Opening the affected project showed the same six session titles as the original service after manually loading the next page; scratch and fectivnfy both expanded and collapsed. The snapshot had no active scheduled jobs and contained no copied credentials.

pnpm verify was not run as instructed.

The project tree requested the next page of sessions when a project was
opened, but a failed request was dropped: the catalog kept no error, the
rail remembered the cursor and never asked again, and the project stayed
silently half-loaded with no toast and no way to recover.

- session-workflows: a failed loadMore now writes the catalog error, the
  same channel loadFlat uses, so the rail can show it.
- SessionRail: a failed cursor may be requested once more after the
  failure has been reported; a second failure waits for the next expand.
- test: assert a failed page load reports its error and settles loading.
@Fectivnfy112357
Fectivnfy112357 merged commit f26268f into main Dec 4, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant