Repository navigation
Record that lf-shot's Fit never enlarges a capture past 100% - #4775
Merged
Merged
Conversation
Since #3635, Fit scales a pair down to its box but never up: `fitShotGeometry` caps the scale at 1. A probe of a 560x520 pair inside `layout-column` draws its frames at 560px in the 720px element. The header said only that Fit keeps both frames in the box, which reads as filling it, and `browser/AGENTS.md` gives every widget a duty to fill the box it gets. An agent reconciling the two could stretch small captures across the box again, as `lf-shot` did before #3635, when a small crop on a page with no Layout drew across a 1728px window and blurred. The header now records the decision and its reason: stretching a capture blurs it, so a capture narrower than its box sits at its own size, and how large to capture is the author's call. Behavior is unchanged.
leaf-agent
approved these changes
Oct 30, 2026
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.
Since #3635, Fit scales a pair down to its box but never up:
fitShotGeometrycaps the scale at 1. A probe of a 560x520 pair insidelayout-columndraws its frames at 560px in the 720px element. Thelf-shotheader said only that Fit keeps both frames in the box, which reads as filling it, andbrowser/AGENTS.mdgives every widget a duty to fill the box it gets. An agent reconciling the two could stretch small captures across the box again, aslf-shotdid before #3635, when a small crop on a page with no Layout drew across a 1728px window and blurred.The header now records the decision and its reason: stretching a capture blurs it, so a capture narrower than its box sits at its own size, and how large to capture is the author's call. Comment only; behavior is unchanged.