Skip to content

[NO-TICKET] doctor: check that the live page names the build it runs - #455

Merged
mariojgt merged 1 commit into
mainfrom
mariot/doctor-live-build-marker
Oct 26, 2026
Merged

mariojgt merged 1 commit into
mainfrom
mariot/doctor-live-build-marker

Conversation

@mariojgt

Copy link
Copy Markdown
Contributor

What changed

doctor --url now also checks that the live page carries Patchstack's build ID (window.__PATCHSTACK_BUILD__, written into the page layout by setup and into built HTML by mark-build).

That ID is how Patchstack knows which build is published. Without it the dashboard has to guess, and its "Unpublished changes" card compares against that guess. With the ID present, doctor reports ✓. Without it, doctor reports ✗ with the fix: npx @patchstack/connect setup --widget, then publish.

How it was verified

  • tests/doctor.test.ts (17 tests):
    • the stub live page now carries the marker, and a page with it reports ✓;
    • a new test checks that a page without it is flagged with the setup fix.
  • Real run against a live Lovable app: the page carries __PATCHSTACK_BUILD__, and doctor reports ✓.
  • The disclosure tests pass.

Rollout

AGENT-INSTALL.md changes (one line in "Verifying the install"), so the hostile field test is owed after the release that carries this.

🤖 Generated with Claude Code

The build ID on the live page (window.__PATCHSTACK_BUILD__, written by
setup and mark-build) is how Patchstack knows which build is published.
Without it the dashboard has to guess, and its "Unpublished changes"
compares against that guess. doctor --url now reports whether the page
carries it, with the fix when it does not.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@coderbuds

coderbuds Bot commented Oct 26, 2026

Copy link
Copy Markdown

🎯 Elite quality (99%) — Adds a focused doctor check for the live build marker, with matching docs and both-path tests.

📦 Small

See how your team is trending →

@mariojgt

Copy link
Copy Markdown
Contributor Author

/review

@mariojgt
mariojgt merged commit b446292 into main Oct 26, 2026
23 checks passed
@mariojgt
mariojgt deleted the mariot/doctor-live-build-marker branch October 26, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants