Skip to content

docs: document patchright stealth path for Matrix UI capture (work-w1j2r)#28

Merged
ak2k merged 1 commit into
mainfrom
worktree-stealth-doc
Jun 13, 2026
Merged

docs: document patchright stealth path for Matrix UI capture (work-w1j2r)#28
ak2k merged 1 commit into
mainfrom
worktree-stealth-doc

Conversation

@ak2k

@ak2k ak2k commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Adds a memory to AGENTS.md (the SPA-capture editing rule): driving the live Matrix UI requires a stealth browser — headless is blocked by Google's waa-pa bot-attestation (the SPA shell loads but the search never fires; the grid just spins).

Documents the working path — patchright real Chrome (launch_persistent_context(channel="chrome", headless=False), same pattern as pp/auth.py:login_via_browser), pre-filling the search with a matrix_deep_link URL — plus the capture gotcha that the SPA routes its search through content-alkalicore-pa.googleapis.com/batch (multipart), not the direct content-alkalimatrix-pa.googleapis.com/v1/search our client uses.

Came out of the calendar under-reporting investigation, where I burned cycles rediscovering this. Docs-only.

…e Matrix UI (work-w1j2r)

Headless Chromium can't drive matrix.itasoftware.com: Google's waa-pa
bot-attestation blocks it, so the SPA shell loads but the search never fires
(the grid just spins). Record the working approach — patchright real Chrome via
launch_persistent_context(channel="chrome", headless=False), the same pattern as
pp/auth.py:login_via_browser, pre-filling the search with a matrix_deep_link URL
— plus the capture gotcha that the SPA routes search through alkalicore/batch,
not the direct alkalimatrix/v1/search our client posts to. Saves the next person
the cycles we just spent rediscovering it.
@ak2k ak2k merged commit a570fc2 into main Jun 13, 2026
2 checks passed
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