Repository navigation
fix: await comment box motion before measuring Send clearance - #4599
Merged
Merged
Conversation
The geometry check compares the editor layout with the painted Send position. Since #4379, Send rides width changes on box-motion, so an immediate read can compare different stages of growth. Wait for finite box animations before each resting geometry read, retaining the existing tolerance and trailing-space assertions. Closes #4467
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 compact-comment clearance test compared the editor's final layout with Send's still-animated position. #4379 deliberately made Send ride changes in the box's width; the test now waits for the box's finite animations before reading resting geometry. The 0.1px clearance tolerance and trailing-space height/position assertions remain unchanged. There is no runtime or visual change.
The focused test passes locally. A diagnostic fixture with Arial and a slightly shorter draft reproduced the mismatch with motion held at 100ms (text boundary 286.266px, Send 286.110px); that fixture passes with the wait, including at 6× CPU throttling. macOS verification remains with CI. Local Ruff checks could not run because the executable is absent.
Closes #4467 — automated triage