mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 08:03:39 +00:00
Streaming pins a page but frames are not activity, so a client that only watched for longer than the idle window had the page parked on the next 30s recheck after closing the pane — not 5 minutes later. Restamp the page's activity when the stream pin lifts (clearPageGate), the same markHeadlessBrowserPageUsed the subscribe path already routes through. At that instant the page is guaranteed resident (the pin vetoed any park, and pin-delete -> touch is synchronous), so the wake is a pure timestamp; a page closed or crashed mid-stream has no record left and the call no-ops. Download and certificate pins deliberately do not get the same treatment: a finished download implies no viewer to come back, and a resolved challenge is always followed by commands that stamp activity themselves.