Skip to content

Rewrite and panel tests report an unchanged write of data-lf-transcript-focus since e5559a2b6 #5919

Closed

Description

@leaf-agent

Since 43200186661 (e5559a2b6), every ci push run on main has had these failures, through 43305728764 (fa76e28e3), 5 of 5. They passed in 43192932702 (a298398f6).

Four tests error in teardown, each with the same write-watch finding:

AssertionError: …/versions/v1.html: unchanged write: data-lf-transcript-focus on div.lf-reply-continuity.lf-page-thread.lf-ring-overlay.lf-ui
  • tests/browser/test_render_floating_panel.py::test_a_thread_s_messages_read_alike_in_its_card_and_the_panel
  • tests/browser/threads/test_rewrites.py::test_a_cards_message_controls_cover_its_head
  • tests/browser/threads/test_rewrites.py::test_a_rewrite_is_the_reply_box_where_the_words_stood[card]
  • tests/browser/threads/test_rewrites.py::test_a_rewrite_of_a_comment_just_sent_is_the_reply_box

Something now rewrites data-lf-transcript-focus with the value it already holds (written in browser/runtime/annotation-overlay/thread-preview.js). The onset range a298398f6..e5559a2b6 holds #5868 (1136fa032, "Read a box's focus from its own marks, never through :has()"), whose diff touches transcript focus, along with #5893 (51f5faaf0, which paints the margin once per card open) and #5875 (e5559a2b6). #5868 is the likely cause, but I haven't bisected it.

tests/browser/margin/test_card_reply.py::test_a_margin_card_is_one_frame_that_rings_for_its_thread began failing in the same run, at line 257 (AssertionError: [{'who': 'div.lf-margin-preview-card "Me55d ago…). It may share the cause through the card's ring/focus marks, or come from #5893's margin painting. Either way, the same bisect will settle it.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Nov 13, 2026
  2. leaf-agent commented on Nov 13, 2026

    @leaf-agent
    CollaboratorAuthor

    #5923 fixes all five tests.

    #5868 is the cause, and no bisect was needed. Its new data-lf-transcript-focus mark is written from the synchronous onCurrentLocation reader. When one script moved focus out of the transcript and back, the mark came off and went back on. The :has() rule it replaced read focus paint, which focus.js applies only once the script has finished moving focus. The mark is now written once per script through afterScript. The margin-card test is a stale assertion from the same PR: the card's ring rule is now [data-lf-control-focus-visible], reached through the thread's --lf-focus-box, rather than a rule naming .lf-page-thread. All five pass locally by node id. The PR's CI and landing are now with tend-land.

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

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions