docs: document patchright stealth path for Matrix UI capture (work-w1j2r)#28
Merged
Conversation
…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.
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.
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-pabot-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 aspp/auth.py:login_via_browser), pre-filling the search with amatrix_deep_linkURL — plus the capture gotcha that the SPA routes its search throughcontent-alkalicore-pa.googleapis.com/batch(multipart), not the directcontent-alkalimatrix-pa.googleapis.com/v1/searchour client uses.Came out of the calendar under-reporting investigation, where I burned cycles rediscovering this. Docs-only.