Repository navigation
Save browser screenshots at their original resolution - #1994
Merged
currentbits merged 1 commit intoNov 11, 2026
Merged
Conversation
The Browser pane can download the latest capture at the size it was taken. The image sent to the agent stays bounded at 1600px. The original is kept in memory for that thread only, until the next screenshot, 10 minutes, or the pane closes. Fixes #1940
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
3 tasks
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.
The Browser pane can save the latest screenshot at the size it was captured. The image the agent receives stays bounded at 1600px.
Fixes #1940
Changes
screenshot-<width>x<height>.pngof the latest capture.Verification
electron/test/preview.test.js: 19/19, including a 3200×2000 capture that stays 1600×1000 for the agent, expiry after 10 minutes, and pane close.test/browserPane.test.tsx: 12/12, including the download name and the "nothing to save" message.npm run typecheckpass.Notes for reviewers
The original is the uncompressed capture, held one per open thread. It is not added to the screenshot result the agent sees.
Created with Grok 4.7 in Solenta.