Repository navigation
fix: branded auth success page that actually reaches the browser - #6
Merged
Merged
Conversation
The browser-side confirmation was unstyled HTML, and worse, it rarely arrived: resolving the login promise triggered server.stop(true) in the finally block, force-closing the socket while the success response was still in flight — the browser got a connection reset instead of a confirmation. Stop gracefully and give the response a moment to flush before the hard stop. The success, missing-params, and state-mismatch responses are now branded Plexicus pages (inline CSS, escaped email) telling the user they're authenticated and can return to the terminal.
White navbar with the inlined Plexicus wordmark, #8220FF primary, square corners, and light body — the same look as the theme-plexicus Forgejo theme on scm.plexicus.ai.
jpalanco
pushed a commit
that referenced
this pull request
Oct 24, 2026
…and filter docs' (#6) from docs-origin-and-contract into main
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.
Summary
Answers "does the terminal show a nice authenticated message in the browser?" — it was supposed to, but in practice it didn't:
server.stop(true)in thefinallyblock, force-closing the socket while the success response was still in flight. The browser got a connection reset instead of a confirmation (found while testing the page against the real local server). Now the server stops gracefully and gives the response a moment to flush before the hard stop.Test plan
bun run typecheck— zero errorsbun test— 54/54 passBun.serveflow: wrong state → styled 400, missing params → styled 400, valid callback → 200 with title/email/hint/branding AND the login promise resolves with the token