Skip to content

fix: check retained content when read metadata becomes empty - #4357

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4348
Oct 27, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The read-position test treated an empty metadata wrapper's box as content that must stay fixed. #4323 intentionally stopped repeating the preceding message's age, so reading a reply can remove its only metadata child, the New dot. The wrapper collapses from 6×6 to 0×0 while the message header, body and remaining content stay in place.

Compare the retained metadata children and surrounding elements at their full geometry, without constraining the wrapper. This preserves both the intentional timestamp removal and the reading-position guarantee; no runtime or visible behavior changes.

The exact browser test fails on current main with the reported 522,2708,6,6 -> 522,2711,0,0 diagnostic and passes with this change. Earlier run 40436400169 passed before #4323; run 40448023036 records the failure after it. #3799 previously adjusted this same assertion for the New label's horizontal disappearance; checking the retained content avoids extending that box-specific tolerance again.

Closes #4348 — automated triage

The read-position test now checks metadata children and the surrounding message geometry rather than the metadata wrapper itself. After #4323 suppresses repeated ages, removing New leaves that wrapper empty without moving content. Preserve the intentional repeated-age removal and the reading-position guarantee.

Closes #4348
@leaf-agent
leaf-agent merged commit 35e7e1d into main Oct 27, 2026
4 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4348 branch October 27, 2026 06:03
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.

Reading a thread collapses its metadata box vertically

1 participant