Conversation
This was referenced Nov 26, 2026
Merged
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.
Fixes #269
Root cause
In
web/app/src/Root.tsx, once login setstoken, the render path falls straight into theif (token)branch and mounts the signed-inDashboard("Hey 👋 / Signed in as…"). The redirect back to/authorize(or to the SAML IdPsaml_continueURL) happens in auseEffect, which runs after that render is committed and painted. So the dashboard is visible for a frame beforewindow.location.replacenavigates away. That is the blink.Fix
Before the
if (token)branch, if a token exists and the resumption effect is about to navigate (isAuthorizeContextorisSamlIdpContinueURL(rawRedirectURL), the same conditions the effect uses), render the existing<h1>Loading...</h1>state instead of the dashboard. Redirect logic is unchanged. Plain/applogins without an authorize context still show the dashboard as before.Checks
make fmt-ts: no changesmake lint-ts: cleanmake build-app: buildsnpx tsc --noEmitinweb/app: cleanManual repro / verify
make dev(andmake build-app).authorize({ response_type: 'token' })while logged out (or open/authorize?response_type=token&client_id=<id>&redirect_uri=<uri>&state=abc&scope=openid). You land on/app?state=...&redirect_uri=..../authorizecompletes and the client gets the token./appdirectly (no query params), log in. The dashboard should still render and stay.