Repository navigation
fix: check retained content when read metadata becomes empty - #4357
Merged
Merged
Conversation
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
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 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,0diagnostic 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