Repository navigation
Mask flags, exit 1 on any diff, area page ceiling, base-build reference in the skill - #31
Merged
Merged
Conversation
--mask (repeatable) adds a mask on every route after the config's masks. --mask-media, or config maskMedia: true, masks iframe, video and .vjs-text-track-display, the per-load noise a real run kept explaining away. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A diff used to exit 0 unless --threshold was set, a footgun in CI and for agents. Now any shot that differs and isn't accepted exits 1; --threshold relaxes that to scores below it, and --threshold 0 never fails on one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the base can be built, compare it locally against the change, with production as a second pass; production mixed in drift, one-sided embeds and CSP errors. After the baseline, mask whatever differs base vs base, then rerun. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 40,000px height ceiling dropped legitimate long pages at narrow widths. It only exists to bound the stitched image, so it now bounds width × height at 1440 × 40,000 px: a 375px-wide page may be about 153,600px tall. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The area ceiling now never drops below 40,000px, so widths past 1440 lose nothing. results.json's summary gains `differing`, the count the default exit code uses. A whitespace-only --mask is rejected, and the docs say a difference that can't be accepted exits 1 even on the --accept run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Fixes from the field feedback on a real CSS-cleanup run (friction items 1, 3, 4 and 6). One commit per change.
Before, a diff exited 0 unless
--thresholdwas set. Now any shot that differs and isn't accepted exits 1.--threshold <0..1>relaxes that to scores below it, and--threshold 0never fails on a difference.thresholdand relied on a diff passing will now fail. Setthreshold: "0"to keep report-only behaviour.--accept. The exception is a difference that can't be accepted (unstable pixels beside it, a width change, or a height change whose rows don't align): that exits 1 even on the--acceptrun. A shot whose only problem is unstable pixels or a failed asset also exits 0, as before; it still gets its own row.The help text, README,
action.yml,docs/github-action.md,docs/accepted.mdand the skill are all updated. The action's exit-1 verdict now reads "❌ Visual change", and the Renovate recipe no longer needsthreshold: "1".Changes
--mask <sel>and--mask-media.--maskis repeatable. Each one adds a mask on every route, after the config's masks.--mask-media, or configmaskMedia: true, adds a preset mask foriframe, video, .vjs-text-track-display.--rerun-failedconfig hash.maskMediamust be a boolean.Exit code. Described above.
Skill.
Area ceiling.
results.json.summary.differingcounts the unaccepted shots that have any differing pixel, which is what the default exit 1 checks.Tests
mediaandlong.--mask,--mask-media, themaskMediavalidation, the exit codes (including--threshold 0) and the area ceiling.npm run lint,format:check,typecheckandtest:allall pass locally (on a Mac).🤖 Generated with Claude Code