Repository navigation
fix: check sent card sizing independently of reopened content - #4534
Merged
Merged
Conversation
Assert the comment frame minimum and its transfer to the sent card directly. A fresh selection may size to the longer queued receipt introduced in #4513; keep the attachment and vertical bounds checks. A temporary 40px editor narrowing fails the new width-transfer assertion, preserving the regression coverage from #4124. Closes #4529
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 send-placement test assumed a reopened card must have the exact width of the card Send opened. #4513's longer italic “Queued for Claude” receipt exposes that assumption: a fresh card sizes to its contents, while a sent card retains the comment frame's width to keep the user's words in place. The test passes on #4513's parent and fails on that commit and current main with the same 48.9375px widening reported here.
Check the guarantee #4124 repaired directly: the comment frame meets the card minimum and Send keeps its width. Reopening still must meet the minimum and retain the attachment and vertical bounds, while choosing its width afresh as
thread-preview.jsspecifies. This changes test coverage only; the status wording and runtime layout stay as they are.Validation: the revised browser case passes on current main's runtime. A temporary 40px loss of editor width makes the new Send-width assertion fail (280px versus 320px), preserving coverage of the original regression. The original assertion failed locally with the reported rectangles; the preceding CI run's junit records a pass and the reported run records the same width mismatch.
Closes #4529 — automated triage