Skip to content

fix: wait for a quiet frame tree before keeping a secret-masked screenshot - #465

Open
abrichr wants to merge 2 commits into
mainfrom
fix/masked-screenshot-frame-settle
Open

fix: wait for a quiet frame tree before keeping a secret-masked screenshot#465
abrichr wants to merge 2 commits into
mainfrom
fix/masked-screenshot-frame-settle

Conversation

@abrichr

@abrichr abrichr commented Sep 3, 2026

Copy link
Copy Markdown
Member

What changed

Secret-masked screenshots (--secret password) refused the ServiceNow PDI wake record. The login page attached and detached iframes after Sign in. Three immediate retries all saw a moving frame tree.

The backend now retries until the frame tree is still, for up to 8 seconds. It still discards any PNG taken while frames moved. It still refuses if the tree never settles.

Verification

pytest tests/test_browser_attach.py::test_live_cdp_attach_records_compiles_and_leaves_browser_running_three_trials passed (82s). Persistent churn still raises. Churn that then settles keeps a masked frame.

Opened by an agent session, not the founder.

…nshot

Three immediate retries lost to SPA login pages that attach and detach
iframes after Sign in. Retry until the tree is still, up to eight seconds.
Discard every PNG taken while frames moved. Still refuse if it never
settles.

Opened by an agent session, not the founder.
A fake login page attaches and detaches iframes for the old three-try
budget, then goes quiet. That is the ServiceNow Sign-in failure. The
record must keep a masked frame. A tree that never settles still refuses.

Opened by an agent session, not the founder.
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