Repository navigation
Keep the read-position test stable when New clears - #3799
Merged
Merged
Conversation
leaf-agent
added a commit
that referenced
this pull request
Oct 24, 2026
The [main CI run](https://github.com/max-sixty/leaf/actions/runs/40077300734) left one browser failure after #3799 fixed its read-position and Ruff failures: `test_the_undo_rows_age_follows_the_clock_while_the_page_stays_open` stayed at “just now” after its clock jumped five minutes. The test installed Playwright’s clock after navigation, when Leaf had already created its repaint interval. Install the clock before navigation so that interval is controlled from creation and the test still checks that a page left open updates Undo’s age without a new log read. The case failed in that main run and passes on this branch in four focused Chromium runs (`uv run pytest -q -n0 tests/browser/test_render_outbox.py::test_the_undo_rows_age_follows_the_clock_while_the_page_stays_open`). The focused Ruff hook and `git diff --check` pass. The failing run’s read-position and Ruff failures were fixed by merged #3799. Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 27, 2026
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 Co-authored-by: leaf-agent <[email protected]>
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 failed main run has one remaining test failure on current
main:test_reading_a_thread_moves_nothing_in_it. After #3794 replaced the unread rail with a New label beside the time, marking a reply read removes that label and narrows only.lf-msg-meta. The thread's content and reading position stay fixed. This change permits that metadata width to close while still requiring its position and height, and every other retained element's full box, to stay fixed.The test originally allowed metadata to close sideways in #1025. The allowance was lost when the old card view was replaced by the panel thread view in #3100. The run's three other failures, which expected the former wide layout size, are already corrected by #3798 on current
main.The first PR check passed its Python tests but failed pre-commit because Ruff added a missing blank line between imports in
tests/journeys/test_thread_titles.py. That formatting correction is included here; the focusedruff-checkhook passes locally.Verification: the read-position test failed before this change and passes after it. All four failing cases from the main run pass locally as six parameterized cases with
uv run pytest -q -n0.