Repository navigation
Description
Found while reskinning My applications (#826).
What happens
Open /jobs/applications by URL, signed in, with applications in the database. The screen renders "Nothing here yet".
Probed from the page, the query is not loading and not errored:
{ status: "pending", fetchStatus: "paused", isError: false, data: undefined }
fetchStatus: "paused" is React Query's offline state: networkMode defaults to "online", so when onlineManager reports offline the query never attempts a fetch and never errors. It stays that way indefinitely — dispatching online and focus events did not resume it.
Navigating to the same screen from inside the app (clicking Applications in the drawer) fetches normally and renders all seven applications. Only the cold load is affected.
Why it matters
A paused query is indistinguishable from an empty result at the component level, so every screen that renders "you have none of these" when data is empty will lie about it. On this screen a worker with an offer waiting was told they had never applied to anything.
#826 adds an explicit error branch to this screen, but that does not help: a paused query is not an error. The fix has to be in the data layer.
What is ruled out
navigator.onLineistruein the page.- The NetInfo-backed
onlineManager.setEventListenerlives inpackages/scf-core/provider/react-query/QueryProvider.native.tsx, which Metro resolves for native only. The web provider (QueryProvider.tsx) installs no online manager, so React Query's default web behaviour should apply. - Not every query is affected in the same load: on the same page,
auth/roles,notifications/unread-countandprerequisites/checkreturned 200 while the applications query sat paused. - Not an auth failure. Earlier loads produced real 401s from the same endpoint inside the auth window; the paused state is separate, and a manual
fetchwith the same stored token returns 200 from the same page.
Worth checking
- Whether anything pulls
QueryProvider.nativeinto the web bundle, which would install the NetInfo listener; NetInfo's web implementation does a reachability probe that can reportisConnected: falsewhere outbound requests are restricted. - Whether
networkMode: "always"is the right default for this app, given every request goes to a local or first-party origin. - Whether the same pause happens in a normal browser or only in an embedded one — the observation above is from the in-app browser pane.
Acceptance
- Cold-loading
/jobs/applicationssigned in shows the applications, not the empty state - A query that cannot reach the network reports an error state rather than sitting silently pending, so screens can say so
- Whatever sets the online state is the same module on web and native, and is covered by a test
Activity
feat(redesign): My applications reads as a path, not a pile (#826) (#884
thinkclay commentedon Sep 23, 2026
Sharper evidence, and it may be the same root cause seen from the other end.
Instrumenting
window.fetchin the running app, every SDK request goes out with the anonapikeyand noAuthorizationheader at all, while the drawer shows the signed-in user and their email:A
fetchfrom the same page, with the access token read straight out oflocalStorage, returns 200 from those same endpoints. So the credential is present and valid; the data layer is not using it.That points at
ScaffaldJobsSdkProviderFromSession(packages/scf-core/utils/jobs-sdk-context.tsx): its config falls back to{ baseUrl, anonKey }wheneversession?.access_tokenis empty, and the client keeps that config. The provider's own comment notes that the inner provider shadows the outerScaffaldProviderFromSession, which is the shape of a bug where one of the two never sees the session.Why it matters more than the paused-query symptom: in this state every SDK-backed screen renders as if signed out — Home shows 0% profile strength and "we couldn't read your sections", My applications shows "nothing here yet" with seven live applications, the employer profile shows "this employer is no longer listed". Nothing says the session is the problem.
Observed for the whole of a session after a dev-server restart; earlier in the same session, before that restart, the same screens sent the token and rendered. So it is a state the app gets into rather than a permanent condition, which is consistent with the paused queries reported above.
Worth adding to the acceptance
feat(redesign): Home is one column of bands, not eight cards (#825) (#…
feat(redesign): the assessments hub is one list with status (#831) (#886
thinkclay commentedon Sep 23, 2026
Closing this — I was wrong, and the two comments above are both artefacts of how I was signing in, not app behaviour.
Re-tested with a clean browser context and a session minted at page-open time (Playwright,
addInitScript, the same flowscripts/audit/sweep-routes.mjsuses). Every screen loads on a cold navigation:/jobs/applicationsrenders all seven applications, grouped by stage/employers/<id>renders the employer and their four open rolesAuthorizationheaderWhat I had actually been doing was pasting a freshly minted session into
localStorageof an already-booted page, repeatedly, over several hours. Each mint invalidates the previous refresh token, so supabase-js would try to refresh with a token the server had already rotated, fail, and drop the session — while a cached profile query kept showing the user's email in the drawer. From there the SDK provider correctly built an anonymous client, and the screens correctly rendered their signed-out paths. Thepausedfetch status in the first comment is the same story from earlier in that sequence.So: no queries are stuck, and the session does reach the SDK client. Apologies for the noise.
What is worth keeping from this:
ApplicationsListandProfileStrengthSectionthat cite this issue are now wrong and I will correct them.feat(redesign): the employer profile shows what they are hiring (#828) (
docs: correct two comments that cite a non-existent bug (#888)