Skip to content

fix(computer): a screenshot while a dialog is open is its tab's last frame at once - #477

Merged
earakely-scale merged 1 commit into
mainfrom
edgararakelyan/dialog-shot
Nov 4, 2026
Merged

earakely-scale merged 1 commit into
mainfrom
edgararakelyan/dialog-shot

Conversation

@earakely-scale

@earakely-scale earakely-scale commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

While a JavaScript dialog is open on a tab, the page can't paint, so the browser never answers a capture. The control waited out its 3 s capture timeout and then returned the last frame it took, so every screenshot an agent took while a dialog was open cost 3 s. The control already knows a dialog is open on the tab, so it now returns that last frame right away.

This was found while timing gate 3's probe on a browser computer in #475: its dialog check took 6.5 s, two screenshots' worth of timeouts.

A dialog that opens during a capture still falls back to the last frame after the timeout, as before.

How it was tested

  • ruff check: clean.
  • Protocol tests: 1021 passed. The dialog capture test now also checks that the control doesn't ask the browser for a capture while the dialog is open; it fails without the change.
  • Integration: CI's slow tier, which runs the browser computer's journey test with a dialog open.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable issues were found.

Summary

Screenshots return the tab’s cached frame immediately when its JavaScript dialog is already open.

  • Screenshots return the tab’s saved frame right away when a dialog is open.

Reviews (1) · Last reviewed commit: "fix(computer): a screenshot while a dial..." · Reviewed by Greptile

…frame at once

The page can't paint while a JavaScript dialog is open, so each capture waited out its 3 s timeout
before falling back to the last frame. The control knows the dialog is open, so it doesn't ask.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@earakely-scale
earakely-scale requested a review from a team as a code owner November 4, 2026 05:05
@earakely-scale
earakely-scale merged commit 5566630 into main Nov 4, 2026
25 checks passed
@earakely-scale
earakely-scale deleted the edgararakelyan/dialog-shot branch November 4, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant