Patch Changes
-
718f945: Stop stranding users on the loading spinner when the session endpoint is
unreadable.useSessionretried a failed/_agent-native/auth/sessionevery
second forever while holdingisLoadingtrue, so a transient 5xx, network
failure, or timeout produced a spinner that never resolved and carried no error
anywhere. It now retries a bounded number of times with backoff and then reports
a distinctstatus: "unavailable"alongside the existingsession/isLoading
fields.RequireSessionkeys off that status: unreadable is no longer collapsed into
signed-out (which would bounce a signed-in user to the sign-in page over a blip)
nor into loading (which stranded them). It renders a notice with Try again and
Reload actions instead.The
DefaultSpinnerstall hint is also environment-aware now. It previously
told every visitor — including on hosted deployments — to "check the terminal
running the dev server", which is meaningless outside local development.