Skip to content

fix(ops): assert the live monitor on the server-rendered title#614

Merged
BigSimmo merged 1 commit into
mainfrom
claude/pt-audit-monitor-marker-fix
Jul 13, 2026
Merged

fix(ops): assert the live monitor on the server-rendered title#614
BigSimmo merged 1 commit into
mainfrom
claude/pt-audit-monitor-marker-fix

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

The first dispatched run of the PT-17 live-domain monitor (#602) failed on a healthy site: the dashboard hydrates client-side (ssr:false), so "Clinical Guide" never appears in the served HTML. Assert on the server-rendered <title>Clinical KB</title> instead (verified present in the live response just now), and print the first 300 bytes of the body on failure so any future mismatch is diagnosable from the run log alone.

Verification

curl -sL https://psychiatry.tools/ | grep -c "<title>Clinical KB</title>" → 1. Prettier green.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Updated live-site monitoring to verify the expected “Clinical KB” page title.
    • Improved diagnostics by displaying a short response preview when validation fails.

The dashboard hydrates client-side (ssr:false), so "Clinical Guide"
never appears in the served HTML and the first monitor run failed on a
healthy site. Assert on the server-rendered <title>Clinical KB</title>
instead, and print the first 300 bytes of the body on failure so a
future mismatch is diagnosable from the run log alone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@BigSimmo
BigSimmo enabled auto-merge (squash) July 13, 2026 17:35
@supabase

supabase Bot commented Jul 13, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ffe0f0aa-aa30-400d-9a1f-69d99593c425

📥 Commits

Reviewing files that changed from the base of the PR and between 8ce2908 and 7d41cbe.

📒 Files selected for processing (1)
  • .github/workflows/live-domain-monitor.yml

📝 Walkthrough

Walkthrough

The live-domain monitor now checks for <title>Clinical KB</title> in the root-page response and prints the first 300 response bytes when the check fails.

Changes

Live domain monitoring

Layer / File(s) Summary
Root-page title validation
.github/workflows/live-domain-monitor.yml
The workflow replaces the “Clinical Guide” string check with a server-rendered <title>Clinical KB</title> check and adds response-body diagnostics on failure.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly reflects the main change: asserting the live monitor on the server-rendered title.
Description check ✅ Passed The description has the required Summary and Verification sections, though it omits the template's checklist and Notes sections.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/pt-audit-monitor-marker-fix

Comment @coderabbitai help to get the list of available commands.

@BigSimmo
BigSimmo merged commit e5bcba8 into main Jul 13, 2026
16 checks passed
@BigSimmo
BigSimmo deleted the claude/pt-audit-monitor-marker-fix branch July 14, 2026 09:42
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.

1 participant