Repository navigation
fix(gpui): preserve screenshot annotations across layout edits - #3342
Open
himanshu748 wants to merge 2 commits into
Open
himanshu748 wants to merge 2 commits into
himanshu748 wants to merge 2 commits into
Conversation
Contributor
|
@himanshu748 is attempting to deploy a commit to the Cap Software Inc Team on Vercel. A member of the Team first needs to authorize it. |
himanshu748
marked this pull request as ready for review
October 26, 2026 07:40
Codex Review SummaryThis 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. |
This branch has not been deployed
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.
Changing a screenshot's aspect ratio, padding, or crop can leave saved annotations different from the preview, move them again when undoing, or delete an edge mask before the new frame arrives. For example, changing an 800×600 screenshot to Square moves a rectangle from y=100 to y=200 in the preview, but the saved snapshot still contains y=100; Undo can then move it to y=0.
Compute annotation coordinates synchronously using the renderer's aligned preview dimensions, before mask clipping, history recording, and saving. Restoring history installs the saved geometry directly. Rendered frames only update presentation and must match the current revision and dimensions.
During a geometry change, the existing loading preview remains visible until the matching frame and mask overlays are ready. History restoration cancels pending mask work so a late result cannot replace the restored mask.
Validation:
git diff --checkpassed. Formatter-only changes outside the two intended files were removed.alsa-syscheck exits 101 becausepkg-configcannot findalsa.pc.Configured native test commands:
Native CI on
479934d46a18c1f7c2dd5a8aaa925eff6e939af1: Linux GPUI CI passes all eight new GPUI regressions and the dimension test, including mask readiness and actual in-flight task cancellation (1,557 app tests passed, zero failures). Native app suites and the dimension regression also pass on Windows (1,433), Apple Silicon (1,474), and Intel macOS (1,469). The eight interaction tests are Linux-only. CI tested a merge of this exact head into basef6046f1.All five Actions workflows completed successfully: CI, Engine verify, Verify recording, Perf budget, and Linux desktop reliability (GNOME, NixOS, niri and Hyprland). Both GitHub-required checks, Engine verify and Verify recording, pass. Vercel's two deployment statuses require maintainer authorization and are separate from code validation. No manual GUI session or rendered export pixel comparison was performed locally.


Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Computes screenshot annotation coordinates before clipping masks, recording history, and saving.
Review checks were based on source and test inspection. No native tests or interactive GUI checks were run during this review.
Reviews (1) · Last reviewed commit: "fix(gpui): preserve screenshot annotatio..." · Reviewed by Greptile