Skip to content

ci-fix: ci nightly failing — #948 suppresses the strip's scroll anchoring and #925 drops the quoted passage's shortcut line #952

Closed

Description

@leaf-agent

Two nightly browser cases on main are red against runtime changes rather than stale readings, so each is a behaviour regression rather than a test to update. Both landed this afternoon and both will redden the next complete suite. #951 repairs the four nightly cases that are stale readings and deliberately leaves these two alone.

Each was checked one case at a time on the tend-ci-fix runner with uv run pytest -q -n0 <node-id>, walking main's history a commit at a time.

The panel strip drops the reader off their words (#948)

tests/test_render_controls.py::test_taking_the_panels_strip_leaves_the_reader_on_the_same_words guards the browser's own scroll anchoring across the strip reflow. Its docstring states the contract it holds: the strip is a border rather than a margin, padding or width precisely so that anchoring is not suppressed, "this passes with no script holding the reader's place", and "the day either regresses, this goes red".

It is now red. At 900px with the document at scrollTop 900, opening Threads leaves p8 under the window's top edge where p11 was — the document grew above the reader and the scroller did not follow, so the reader is three paragraphs back from the words they were on.

commit result
eaa9a31 (#940, #948's stated parent) passes
8432851a (#945) passes
559debbe (#948) fails, p8 where p11 was
4bfa3e60 (#946) fails

#948's description reports this assertion as "reproduc[ing] unchanged on parent eaa9a31". On this host it does not: eaa9a31 passes and the failure starts at #948's own commit. The change moved the panel's paint inside auxiliarySurfaces.select's moveContentFrame callback, so paintPanel's dialog layer and conversation render now run between the body strip attribute and pageShifted()/layoutMarginRows(), where they used to run after them. I did not establish which part of that reordering suppresses anchoring.

The quoted passage loses its line in the shortcut bar (#925)

tests/test_render_navigation.py::test_a_comments_quoted_passage_is_in_the_keyboard_journey walks the keyboard to a comment's quoted passage. The quote still takes focus and still carries role="button" and aria-keyshortcuts="Enter Space", so it is reachable and named — but the shortcut bar no longer carries its line. Standing on the quote, the bar reads:

esc back to panel · r reopen · / find · c comment · t / T threads · d / u page down / up · j / k scroll down / up · g go to · ? more

return to the passage is absent and the thread's own r reopen rung stands in its place, so a reader on the control is not told what Enter does there. The rung is gated on when: () => Boolean(this.#model.quote?.found) in conversation/thread-card.js, which suggests the quote is reading as unresolved, but I did not confirm that.

Green on 4bfa3e60 with #951's filter reading applied to the same case; red from e61c0a62 (#925) onward. #925 removed if (!descriptor.visible && !folding) view.node.open = false; from thread-list-view.js, so a card the narrowing hides now keeps its disclosure, and set thread.resolved = null on every non-reaction reply in conversation/model.js.

Why this is an issue rather than a PR

Both fixes are in runtime code whose intended behaviour the change's own author settles — #948 is a layout-ordering question inside the auxiliary-surface registry it just introduced, and #925 turns on whether a narrowed-away card keeping its disclosure is meant to change which rung the bar shows. Neither is a reading to update in the test, and I could not establish either mechanism well enough to fix it at the level that produced it.

Activity

  1. leaf-agent commented on Sep 22, 2026

    @leaf-agent
    CollaboratorAuthor

    The mechanism this issue records as inferred is confirmed, and it turns out to be declared behaviour — which settles two other red cases but not either of the ones here.

    Two more nightly cases are red on main with the same bisect boundary as the quoted passage, green on 4bfa3e60 and red from e61c0a62: tests/test_render_reactions.py::test_an_ok_on_the_agents_latest_reply_takes_the_thread_out_of_waiting, which is one of the node ids run 35758716384 reported (#917 repaired it and #925 reddened it again before anyone re-read it), and tests/test_render_controls.py::test_every_control_the_layer_offers_is_a_box_the_reader_can_hit, which post-dates that run.

    Both press a card's summary a second time to reopen what the narrowing used to close. Reading the card's open either side of that press on origin/main: it is already open when the narrowing brings it back (True), so the press closes it (False). The reaction case then times out on a chip that is never visible — Locator.click: Timeout 30000ms exceeded on .lf-react[data-token="keep"], "element is not visible" — and the aim case reads .lf-reopen hidden, which is the one control its arrangement exists to stand up. That is if (!descriptor.visible && !folding) view.node.open = false; gone from thread-list-view.js, observed directly rather than read off the diff.

    It is declared, not a regression. #925's commit message states it — "Native thread disclosure survives filtering, so an answer returns where the reader left it unless they selected another conversation" — and the same commit rewrote thread-list-view.js's module header to say "Narrowing retains that disclosure; opening another named card closes it natively." So both are stale readings of the same family as the four #951 started with, not runtime questions for #925's author. #951 now carries them, asserting the retained disclosure where each case used to press for it.

    That leaves this issue's two cases standing, and narrows the second one: the disclosure retention is no longer part of what makes the quoted passage a question. The return to the passage rung is gated on when: () => Boolean(this.#model.quote?.found) while the bar shows r reopen, whose own reopen reads this.#model.resolved in conversation/thread-card.js, and #925's other change was thread.resolved = null on every non-reaction reply in conversation/model.js. I did not establish which of those two reads wrong.

    Bisect and instrumentation

    Each commit checked one case at a time on the tend-ci-fix runner, in a worktree on the commit itself, with env -u CLOUDFLARE_API_TOKEN uv run pytest -q -n0 --run-nightly <node-id>.

    commit reactions case aim case
    c48b647c (#917, the repair) passes —
    ab0bde74, 254fdd45, 8432851a (#945) pass —
    559debbe (#948) passes —
    4bfa3e60 (#946) passes passes
    e61c0a62 (#925) fails, chip not visible fails, .lf-reopen hidden
    origin/main fails fails

    The open readings come from a temporary page.locator(".lf-thread").first.evaluate("el => el.open") either side of the page.locator(".lf-thread-summary").click() that precedes the take-back, on origin/main.

  2. leaf-agent commented on Sep 22, 2026

    @leaf-agent
    CollaboratorAuthor

    Both cases have a fix open, each green on lint and test: #954 for the strip's scroll anchoring, #955 for the quoted passage's shortcut line. Neither is a runtime question for the change's author in the way this issue framed it, and the second one is the retained-disclosure family after all.

    The strip (#948) is a runtime fix. select passed the whole surface transition — the previous surface's hide, the body strip write, and the new surface's own rendering — into moveContentFrame's callback, where theme.css at the body strip says only the container-query recalc inside layout may move the reading column. Bisecting inside that callback one call at a time, showing the panel's dialog is the single trigger, and it is the dialog becoming rendered rather than anything it does to focus: dropping refreshConversation()/syncGeneral() still fails, dropping the invoker's focus({preventScroll: true}) still fails, and panel.open = true in place of panel.show() — no dialog focusing steps at all — still fails. Dropping showPanelLayer(), or moving show() after the frame, passes. #954 leaves only the strip write inside the frame, which is also what present already did, so the gesture and arrival paths now agree.

    The quoted passage (#925) is the third case of the retained disclosure, not a reading of quote.found. The comment above narrowed it away too early: the assertion that fails is not the first return to the passage in the case but the one after the thread is resolved and the panel narrowed to Resolved on a 390px sheet. At the first one the bar carries the line and the rung's when returns true. The case then presses the card's summary to open it, and #925's retained disclosure means it is open already — open reads True before that press and False after — so the press shuts the card, the quote loses its box, and its command scope leaves the bar with it. What the bar falls back to is the thread's own rung, which is the r reopen this issue read as standing in its place. #955 states the retained disclosure where the case pressed for it, the same repair #951 makes in the reactions and aim cases.

    test_a_comments_quoted_passage_is_in_the_keyboard_journey does not go green on #955 alone: its later to_be_checked() reading of the status filter is the other half and #951 owns that hunk. The two diffs sit thirty lines apart in the same function and merge in either order; with #951's two lines applied locally on top of #955, the case passes.

    One more red case belongs to neither issue. tests/test_render_startup.py::test_the_thread_follows_the_decision_that_still_stands fails on f4107f63 with and without both diffs: it reads the status filter's label as Resolved, where #945 gave it its count and it now reads Resolved (0). That is the same family #951 is repairing, in a file #951 does not touch, and test_render_startup.py's reading is the one-line counterpart of the Resolved (1) reading #951 already carries in test_render_controls.py.

    What each local run covered

    On f4107f63, with both diffs applied:

    • tests/test_render_controls.py --run-nightly: 94 passed, with test_every_control_the_layer_offers_is_a_box_the_reader_can_hit[True] and [False] red — the two Update six nightly cases to main's threads panel, filters, card disclosure and message workflow line #951 repairs. test_taking_the_panels_strip_leaves_the_reader_on_the_same_words is green in the whole-file run, not only alone.
    • The everyday suite: 1283 passed, 3 skipped, and five failures this sandbox produces unchanged on the untouched tree — AF_UNIX sockets and a umask reading, in test_interact_layer.py, test_interact_session.py and test_website_server.py.
    • npm run test:runtime: 34 passed.
    • pre-commit on the changed files: clean.

    Both cases are nightly, so a pull request's own ci reaches neither. main's complete suite on the merge is the first automatic run that reads them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions