Repository navigation
Check the visible Threads panel inside its named dialog - #2639
Merged
Merged
Conversation
leaf-agent
added a commit
that referenced
this pull request
Oct 12, 2026
…2651) The [main CI run](https://github.com/max-sixty/leaf/actions/runs/38291812775) failed three browser tests after #2635. #2639 already repaired the Threads dialog visibility assertion. This PR repairs the other two tests while preserving the behaviors they check. The selection test clicked a heading that brought the page back toward the top, then dragged toward text outside the viewport. The browser extended that selection into the next paragraph. The test now brings the target paragraph into view before dragging. The wide Ask test assumed its answer list stood mostly under the open Threads panel; the breakout change placed it in the Ask's wide span instead. Its fixture now positions the list on the panel side, so pressing `q` still has to reveal a covered answer list. All five focused cases pass on this branch: the selection test, all three Ask postures, and the Threads naming test (`uv run pytest -q -n0` with those node IDs). The two changed assertions each failed on current main before the fixture changes. --------- Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 13, 2026
… persistent otherwise (#2699) In the glossary, **Standing** means one thing: the user holding a destination or a control inside it (a standing target, ending a standing). Across the tree "standing" was also an ordinary adjective for things that are in force, current, open or lasting ("the standing log", "a standing report", `standing_approvals`, `--standing`), which collided with that term. This rewords every such use and renames the identifiers with all their callers, leaving "standing" to mean only where the user is. The glossary gains an **In force** row and a line saying so. **Replacements, one word per meaning** - not withdrawn or retracted → **in force** (`InForce`, `StateProjection.in_force`, `approvals_in_force`, the per-verb `inForce`); the served field keeps its name `stands` - the latest value or reading → **current** - still owed, or a surface on screen → **open** / **active** - a server or environment that outlives sessions → **persistent** (CLI `--standing` → `--persistent`, service.json `"lifetime": "persistent"`); always-present chrome → **fixed** - a preference → **lasting**; a dispatch → **recurring**; otherwise **existing**, **present**, **in place**, **permanent** **Behavior changes** - `leaf server start --persistent` replaces `--standing`, and refusals and the lifetime line say "persistent". - One `server.read_service(page_dir)` now reads `service.json` for every caller, returning nothing unless the record has its required fields and a lifetime this Leaf knows. A record an older Leaf wrote with `"lifetime": "standing"` is therefore no service (root AGENTS.md, "Stage"), A server that older Leaf started still holds its lease, so `leaf server stop` and a re-vendor detect it from the lease, delete the record and wait for it to exit; until then `server start` refuses as before. A server started persistently before this change is re-served with `--persistent`. - Visible wording: "Current text matches this version", the reaction scope "On a reaction", the margin contribution key `"reactions"`, and the eval surface `action-in-force` (with its metrics). **Fixes for journey tests main had broken.** Editing these test files selects them, and each already failed on main: - `test_a_comment_box_moves_home_when_a_panel_comes_to_cover_its_seat` (since #2613 made the Threads dialog's envelope zero-size): it now checks the dialog is open and its panel visible, as #2639 did for a sibling. - `test_each_sampled_focus_ring_is_shown_whole_in_its_surface` (since #2647): the floating panel's focus rule declares `--lf-focus-ring: floating-panel`. - `test_an_aimed_press_does_only_what_the_outline_promised[release-notes]` (since #2670 put a Web Awesome Copy control in `lf-draft`): `elementFromPointAcross` stepped into the control's own shadow tree and took its internal `id="copy-button"` for a page element, so the aim and the press both targeted it and no comment landed. The hit test now enters only shadow roots a widget declares with `x-shadow`, as `passages.js`'s header already says; the aim takes the `lf-draft`. - `test_a_first_complete_read_does_not_repaint_an_already_undone_settlement` (since #2649 made decision commands wait for the first complete read): the race it guards moves one read later, so the page takes its first read before the held Accept and undo; renamed `test_a_complete_read_…`, assertions unchanged. The sweep is generated by a script of exact edits plus identifier rules, so a newer `main` is regenerated rather than conflict-resolved. Root `AGENTS.md`'s maintainer section ("a standing preference", line 13) is unchanged. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[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 main CI run failed because the Threads naming test asks Playwright to see the dialog envelope itself. #2613 intentionally made that transparent envelope zero size so it no longer covers page text. The test now checks that the named dialog is open and that its visible Threads panel is shown. It still checks the thread card's accessible name after opening a comment.
The run's other failure, the reaction trigger placement test, was addressed by merged #2625. Both focused tests pass on this branch:
uv run pytest -q -n0 tests/browser/test_render_navigation.py::test_the_thread_panel_and_a_page_thread_carry_names tests/browser/test_render_threads.py::test_a_reaction_list_opens_from_a_trigger_under_the_thread_panel(the original naming assertion failed before this change). This PR changes only the test's reading of the panel.