Repository navigation
Description
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
leaf-agent commentedon Sep 22, 2026
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
mainwith the same bisect boundary as the quoted passage, green on4bfa3e60and red frome61c0a62: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), andtests/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
openeither side of that press onorigin/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 exceededon.lf-react[data-token="keep"], "element is not visible" — and the aim case reads.lf-reopenhidden, which is the one control its arrangement exists to stand up. That isif (!descriptor.visible && !folding) view.node.open = false;gone fromthread-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 passagerung is gated onwhen: () => Boolean(this.#model.quote?.found)while the bar showsr reopen, whose ownreopenreadsthis.#model.resolvedinconversation/thread-card.js, and #925's other change wasthread.resolved = nullon every non-reaction reply inconversation/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-fixrunner, in a worktree on the commit itself, withenv -u CLOUDFLARE_API_TOKEN uv run pytest -q -n0 --run-nightly <node-id>.c48b647c(#917, the repair)ab0bde74,254fdd45,8432851a(#945)559debbe(#948)4bfa3e60(#946)e61c0a62(#925).lf-reopenhiddenorigin/mainThe
openreadings come from a temporarypage.locator(".lf-thread").first.evaluate("el => el.open")either side of thepage.locator(".lf-thread-summary").click()that precedes the take-back, onorigin/main.leaf-agent commentedon Sep 22, 2026
Both cases have a fix open, each green on
lintandtest: #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.
selectpassed the whole surface transition — the previous surface's hide, the body strip write, and the new surface's own rendering — intomoveContentFrame's callback, wheretheme.cssat 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: droppingrefreshConversation()/syncGeneral()still fails, dropping the invoker'sfocus({preventScroll: true})still fails, andpanel.open = truein place ofpanel.show()— no dialog focusing steps at all — still fails. DroppingshowPanelLayer(), or movingshow()after the frame, passes. #954 leaves only the strip write inside the frame, which is also whatpresentalready 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 firstreturn to the passagein 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'swhenreturns true. The case then presses the card's summary to open it, and #925's retained disclosure means it is open already —openreadsTruebefore that press andFalseafter — 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 ther reopenthis 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_journeydoes not go green on #955 alone: its laterto_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_standsfails onf4107f63with and without both diffs: it reads the status filter's label asResolved, where #945 gave it its count and it now readsResolved (0). That is the same family #951 is repairing, in a file #951 does not touch, andtest_render_startup.py's reading is the one-line counterpart of theResolved (1)reading #951 already carries intest_render_controls.py.What each local run covered
On
f4107f63, with both diffs applied:tests/test_render_controls.py --run-nightly: 94 passed, withtest_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_wordsis green in the whole-file run, not only alone.AF_UNIXsockets and a umask reading, intest_interact_layer.py,test_interact_session.pyandtest_website_server.py.npm run test:runtime: 34 passed.pre-commiton the changed files: clean.Both cases are nightly, so a pull request's own
cireaches neither.main's complete suite on the merge is the first automatic run that reads them.Read the retained disclosure where the quoted-passage case pressed fo…
Keep the reader's place when an auxiliary surface takes the page's st…
Update six nightly cases to main's threads panel, filters, card discl…