Skip to content

@agent-native/core@0.137.8

Choose a tag to compare

@builder-io-integration builder-io-integration released this 05 Aug 17:12
· 5036 commits to main since this release
d7f3a9e

Patch Changes

  • 718f945: Stop stranding users on the loading spinner when the session endpoint is
    unreadable. useSession retried a failed /_agent-native/auth/session every
    second forever while holding isLoading true, 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 distinct status: "unavailable" alongside the existing session/isLoading
    fields.

    RequireSession keys 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 DefaultSpinner stall 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.