Repository navigation
Align margin label test with focus and Escape layers - #2755
Merged
Merged
Conversation
leaf-agent
added a commit
that referenced
this pull request
Oct 13, 2026
A malformed package visual inventory now withholds that visual's comment controls without stopping the rest of the page's presentation. The strict read added in #2749 correctly prevented a whole-visual action from surviving an invalid inventory, but its exception escaped from the action planner before `page check --render` could report the inventory fault. The planner now contains that exception for the affected visual; the render gate retains its strict diagnostic. The existing render-gate test failed on `main` with `never-upgraded` and passes with this change, reporting the expected `visual-parts` findings. The four startup phases pass, as do `pnpm run test:runtime` (406 tests). The other failure in [main CI run 38399385979](https://github.com/max-sixty/leaf/actions/runs/38399385979) was the margin label test; #2755 had already repaired it, and its exact test passes on current `main`. 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 margin browser journey now establishes the resting state before checking that a label is hidden, then checks each Escape layer in order. On current
main, the test left Accept focused after opening reactions and expected its focus label to be hidden. It also expected one Escape to close both the reaction choices and their underlying options. Those expectations disagree with the visible focus label and the existing reaction journey's layered Escape behavior.The exact test failed before this change and passed afterward (
uv run pytest -q -n0 tests/browser/test_render_margin.py::test_one_target_has_one_primary_margin_entry_and_inline_secondary_margin_entries). This addresses one browser failure in the main CI run; the other failures have separate causes.