Repository navigation
fix(mobile): the phone's host list falls back to the plain list when every feed read fails - #31309
Merged
Merged
Conversation
…every feed read fails Once the sidebar feed reader spent its retries without installing anything, the list stayed on the spinner until the next stream-ready or foreground, though worktree.ps had rows. The reader now says it gave up, and the list draws the worktree.ps rows (or keeps the host's last installed feed) until a later read installs.
9 tasks done
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.
ELI5
If the phone could not read a desktop's sidebar list after several tries, the workspace list stayed on a loading spinner. It stayed there even though the phone already had the desktop's workspaces from another query. Now, once the phone gives up, it shows those workspaces instead.
What Changed
worktree.pshad rows.worktree.psrows, which is the fallback an older desktop gets, and treats the list as loaded. If this page has the desktop's last installed feed, it keeps showing that instead. A later successful read replaces either one with the live feed.HostSidebarFeedReaderreportsgaveUponce its retry budget is spent with nothing installed.readHostSidebarFeedmaps that to a newfailedfeed state.use-host-list-sections.tsdraws the pre-feed rows forfailedas well asreopen.worktree.ps's own loaded flag in that state.gaveUpwhile it already holds an installed (remembered) feed.Why
Nothing on this screen should be able to get stuck. The plain list already exists for desktops without the feed, so reusing it adds no new list shape. It shows up only after the reader has visibly failed for about 30 seconds, not as a first-frame flash. Two alternatives were considered:
Linked Issue
N/A (review follow-up to #31301)
Visual Proof
N/A. This only changes what shows after every feed read has failed, which is covered by the tests below.
Testing
mobile/src/host-screen/host-list-first-frame.test.tsx:worktree.psrows and later switches to the feed;host-sidebar-feed-reader.test.ts: the reader reports give-up once its retries are spent, including when a paged batch never completes, andfailedmaps from it. All 5 new or changed cases fail on the base branch.pnpm tc, and the static gate including both ratchets.Notes
There is no wire change. An older desktop without the feed still shows "Reopen to update" with its rows.