Skip to content

fix: await comment box motion before measuring Send clearance - #4599

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4467
Oct 28, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4467

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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

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
@leaf-agent
leaf-agent merged commit 001ab75 into main Oct 28, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4467 branch October 28, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compact comment Send clearance differs by more than its tolerance

1 participant