docs(ego-browser): note window-state cause of screenshot timeouts - #255
Open
jsiu93 wants to merge 1 commit into
Open
docs(ego-browser): note window-state cause of screenshot timeouts#255jsiu93 wants to merge 1 commit into
jsiu93 wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Summary
page.screenshot()times out whenever the ego lite window is minimized or hidden on macOS, because the system stops issuing drawing signals for those window states. #183 localized this and the workaround established there is to keep the window visible; it may be fully covered by other windows. That conclusion currently lives only in the issue thread, so every agent rediscovers it the hard way.The symptom is actively misleading: the screenshot times out while
page.info(),page.evaluate(), navigation and input helpers all keep working normally, which reads as a broken runtime rather than a window state. In our session it cost roughly six rounds of diagnosis across new tabs, new routes and three fresh task spaces before an unrelated app restart happened to make the window visible again, after which the first capture returned in about 1 second and the next in 63 ms.One Caveats bullet turns that into zero rounds.
Related issue
Relates to #183. Not a fix for it: the underlying behavior is a Chromium display-backend concern that the maintainer has said may not be worth fixing. This only records the symptom, the cause, and the recovery so agents stop misdiagnosing it.
Changes
## Caveatsinskills/ego-browser/SKILL.md, placed directly after the existingpage.info()bullet since that one already covers when to stop screenshot and coordinate work.Verification
Commands run from
package/ego-browser:Behavior reproduction, on ego lite 0.4.6.12 (chromium 150.0.7871.101, macOS Darwin 25.6.0), with a page loaded and settled:
Cmd+M) or hide (Cmd+H) the ego lite window, then take a screenshot. It times out after about 15 seconds withCDP request timed out: Page.captureScreenshot, while a page-info call in the same command returns a normal viewport.Impact
No public surface changes, so there is nothing to migrate or roll out.
Checklist
devfor normal changes; onlydevmay targetmain).feat,fix,docs,chore,ci, orrefactor). Outside contributors cannot set labels; please applydocs.