Repository navigation
[ENG-4461] Give a connected site its dashboard link in setup's summary - #464
Merged
Merged
Conversation
Once a claim token connected the site, setup's summary carried no link. Patchstack sends the site's dashboard link back with the claim, but it reached no part of the output an assistant reads, and the connect link is removed from .patchstackrc.json once the site has an owner. An assistant asked to show the dashboard link then wrote one from the site UUID, and that address does not exist. Setup's summary and its closing line now carry the dashboard link once the site is connected: the one Patchstack sent, or the claim link, which takes a signed-in owner to the site. `summary` ends the same way. The list of changed files no longer says the config holds a connect link when it does not, and AGENT-INSTALL.md asks assistants never to build a dashboard link from the UUID. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
/review |
|
🎯 Elite quality (97%) — Threads the server's dashboard link through setup's summary, with a safe claim-link fallback and thorough tests. 📦 Medium |
daniloradovic
approved these changes
Oct 29, 2026
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.
Closes ENG-4461
What changed
When a site is connected, setup's summary now ends on a link to the site in the dashboard. Before this, an assistant asked to "show me the dashboard link it prints" found no link and wrote its own from the site UUID. That address doesn't exist, so the person landed on a 404.
Why there was no link
--claim-tokenconnects the site, the manifest response includesclaim.dashboard_url. Setup kept it only in the report's "done" list, which the concise report never prints. It never reached the summary or the closing line, the two parts an assistant passes on..patchstackrc.jsonas "site ID and connect link", but connect removes the connect link once the site has an owner. An assistant that opened the file looking for a link found only the UUID.Fix
See what Patchstack found in your dashboard: <link>under the headline once the site is connected. This is the same linenextalready prints.dashboard_urlPatchstack sent when this run's claim token connected the site. Otherwise it's the claim link, which takes a signed-in owner to their site.next,statusandvulnsalready use the claim link.npx @patchstack/connect summarynow ends with a link for a connected site too.site ID, safe to commitwhen the connect link wasn't kept.AGENT-INSTALL.mdgets a new rule: never build a dashboard link from the site UUID; pass on the onesetup,statusornextprints. It also says what the link is for once the site is connected. The README no longer says a claim-token setup has no dashboard link to open.How it was verified
report.test.ts(summary line, closing line) and two end-to-end setup runs inbin-invocation.test.ts. One setup is connected by a claim token whose response carries a dashboard link; the other runs on a site that already has an owner. All four fail onmainand pass here.dashboard_url. Onmain, the link appears nowhere in setup's output. On this branch, it is in the summary and the last line.npm run typecheck,npm run buildandnpm testare clean (4,655 passed).npm run capabilities:check: no vocabulary change.Gate still owed: this changes
AGENT-INSTALL.md, which the field test reads from the published tarball.node field-test/run.mjs --persona standard --rounds 3(orhostile) has to run right after the release that carries this.Flag: none. This is a bug fix: setup was meant to print the dashboard link, and the public docs already say it does.
Docs: not needed. docs.patchstack.com already says that with a claim token "
setupprints your dashboard link for it"; this makes the CLI match.🤖 Generated with Claude Code