Repository navigation
fix(auth): the signed-out front page tells an agent where to start - #674
Merged
Merged
Conversation
An agent given only the instance's address fetches `/` and gets the signed-out door, which never mentioned `/llms.txt`. The door for `/` (query strings included) now carries one plain supporting-text line: "Setting up with an agent? Tell it: Set up Patchy using <instance>/llms.txt", built from the session's public base URL. Patch, company and failed sign-in doors are unchanged, and the door keeps its two actions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
GPT 6.1 Sol review (xhigh), round 1No blocker, should-fix, or nit findings in
All four flagged decisions are acceptable:
The screenshot link was inaccessible; visual judgment rests on the markup and shared CSS. NOT READY — code review is clean, but CI is still running on the latest commit. |
allisonmahmood
added a commit
that referenced
this pull request
Oct 14, 2026
… Patchy is smoother (#679) Release 12's What's new entry, written from `b58b899`, ahead of deploying it. `patchy` and `CURRENT_RELEASE` move to `0.12.0`, so CLIs and patch repos installed before this deploy are told to upgrade. | Change | PRs | | --- | --- | | Fixed: Links within a page jump to their section | #677 | | Improved: Set up Patchy however you ask | #672, #674 | | Improved: Claude Code can know Patchy is your company's own | #676 | | Fixed: Your agent remembers Patchy after a Node.js update | #673 | | Fixed: Sign-in codes say how many minutes they have left | #675 | | Behind the scenes: uploaded pages and logos are checked within strict limits | #678 | Made by Claude Opus 5.5 via Claude Code in T3 Code Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
What changed
An agent given only the instance's address fetches
/and gets the signed-out door, a 401 page that never mentioned/llms.txt. On a real setup on 2026-10-14 the agent found/llms.txtonly by guessing the convention.The door for
/(query strings included) now carries onesupporting-textline, for anyone setting Patchy up through an agent:doorinpackages/auth/src/RequireSession.tsbuilds it from the session's public base URL, escaped, without depending on Portal. It shows when the door's return path is/, and not on the failed sign-in variant. Patch and company doors are unchanged. It is plain text, not a link, so the door keeps its two actions (Sign in, Join the waitlist). The line sits before the actions, so no new CSS was needed.Two decisions worth checking:
/login?return=/therefore renders the same door as/, which keeps the existing invariant that the door and/loginshare one renderer. Plain/loginreturns to/machinesand stays without the line.Closes #669
Screenshots: the production (Clerk + waitlist) look at desktop and phone width, and the local dev door: https://post.patchyhq.com/d/g0ile2a6sx0f (public but unlisted; local dev data only).
How it was verified
pnpm testpasses locally (pnpm check: format, lint, typecheck, synth, 177 files / 1737 tests)pnpm verify: format, lint, typecheck, synth, postgres-concurrency, cli-smoke, tier2-smoke and browser passed. Thetestsuite timed out in unrelated packages (packages/patchyCLI repo tests, SDK, PGlite) with a vitest worker SIGKILL while other worktrees ran heavy suites. Rerun alone, it passed: 177 files, 1737 tests.AuthPages.test.tschecks that the door for/and/?all=1carries the setup line, and that a patch path's door and the failed sign-in door do not.On a local instance (
pnpm dev), signed-outcurlof/?all=1returned 401 with the line andhttp://127.0.0.1:<port>/llms.txtin it, and/companyreturned the door without it.pnpm devshot of/login?return=/, plus the Clerk variant rendered through the realdoorwith a stand-in session, are on the screenshots page.The line only helps agents that read the 401 body (a shell
curl). A fetch tool that discards error bodies still won't see it. Changing/to a 200 is out of scope, as the issue says.CLAUDE.md surface walk
ui-consistencyspec: it composessupporting-textand the shell's basecode, with no new classes or CSS. The spec's page-kinds line now says the signed-out root'ssupporting-textgives the setup line, as plain text and not a third action. No policy fixtures change (no accepted/rejected HTML).docs/product.md's portal paragraph ("Signed out,/shows the login door") now mentions the line. No glossary term or ADR changes.Release impact
Made by Claude Opus 5.5 via Claude Code in T3 Code