Skip to content

fix: check sent card sizing independently of reopened content - #4534

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

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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.js specifies. 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

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
@leaf-agent
leaf-agent merged commit 3783694 into main Oct 28, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4529 branch October 28, 2026 00:40
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.

Sent comment card becomes wider when reopened from its marker

1 participant