Skip to content

fix(files): blank screen when navigating mid-load - #2501

Merged
lidel merged 1 commit into
mainfrom
fix/files-e2e-flake
Jul 29, 2026
Merged

fix(files): blank screen when navigating mid-load#2501
lidel merged 1 commit into
mainfrom
fix/files-e2e-flake

Conversation

@lidel

@lidel lidel commented Jul 29, 2026

Copy link
Copy Markdown
Member

Problem

Open a folder that is slow to list, click through to another path before it finishes, and you land on a blank screen: no listing, and for a path that does not exist, not even the error page. It stays blank until you navigate somewhere else.

doFilesFetch skips its work while another listing is in flight, and the navigation's own call is exactly that. Nothing retries it, so the view still holds content for the path you left, and the stale-path guard in MainView rightly refuses to render it.

Fix

  • Once the in-flight fetch settles, re-check the route and fetch the new path if it moved
  • Runs on failure too, since a rejected fetch leaves the new path just as unfetched

The guard from #2437 stays as it is: it was doing the right thing, and the fetch it was waiting on never came. Still one listing at a time, so no extra concurrent requests.

doFilesFetch does nothing while another listing is in flight, so
navigating during a slow load dropped the new path's fetch, and nothing
retried it. The view then held content for the path we had left, which
the stale-path guard renders as an empty screen: no listing, and no
error page for a path that does not exist.

Re-check the route once the in-flight fetch settles and fetch again if
it moved. Also runs when the fetch fails, since that leaves the new path
just as unfetched.
@lidel lidel changed the title fix(files): refetch after navigating mid-load fix(files): blank screen when navigating mid-load Jul 29, 2026
@lidel
lidel marked this pull request as ready for review July 29, 2026 13:14
@lidel
lidel requested a review from a team as a code owner July 29, 2026 13:14
@lidel
lidel merged commit 58fcfe2 into main Jul 29, 2026
13 checks passed
@lidel
lidel deleted the fix/files-e2e-flake branch July 29, 2026 13:18
@lidel
lidel restored the fix/files-e2e-flake branch July 29, 2026 13:19
@lidel
lidel deleted the fix/files-e2e-flake branch July 29, 2026 13:20
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