Repository navigation
Fix sessions missing from expanded projects - #80
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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:webuipnpm --filter @mavis/webui typecheck:clientpnpm 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)pnpm verifywas not run as instructed.