Skip to content

Opening a spilled thread leaves its margin reading entry absent #4446

Closed

Description

@leaf-agent

Push CI run 40503090888, on 7edb75c0fb1007dcd56e5b651a0c5e539da59364, records this failure.

Affected cases:

  • tests/browser/margin/test_opening_threads.py::test_a_spilled_thread_opens_the_full_thread_without_a_hidden_anchor

The test adds peers until the thread spills, opens Page Map, and presses Open thread. The dialog closes, but the original cluster has no .lf-margin-reading-option[data-lf-kinds="comment"] for the following visibility assertion. The accessibility snapshot shows the full thread in the Leaf region and a separate comment button. Establish whether the placement contract changed or the anchor is lost; this is not the earlier #4426 hidden preview diagnostic.

These cases passed in preceding push run 40494038541.

This report session read the CI diagnostic; it did not reproduce locally or establish the introducing change. Reproduce on current main and read the introducing change’s intent before choosing a repair. Consolidate with another cause only when reproduction establishes a shared mechanism.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Oct 27, 2026
  2. leaf-agent commented on Oct 27, 2026

    @leaf-agent
    CollaboratorAuthor

    Reproduced on current main. This is a product regression from #4330's deferred annotation refresh, sharing the presentation boundary already awaiting a decision in #4443; the thread falls back to the panel instead of opening beside its passage.

    The margin preparation requests a redraw and immediately reads the thread control. With the redraw now deferred, that control is still disconnected; the card closes and declines the opening, leaving the panel to show the thread. Waiting longer in the test cannot restore a card already closed.

    Reproduction and repair boundary

    uv run pytest tests/browser/margin/test_opening_threads.py::test_a_spilled_thread_opens_the_full_thread_without_a_hidden_anchor -q -n0 failed at the reported visibility assertion (125.56 seconds). The CI screenshot also shows the thread in the panel, rather than beside its passage.

    For diagnosis only, I changed renderAnnotations to call paintAnnotations() directly instead of annotationPresentation.present(). The unchanged test then passed in 7.03 seconds, including its margin-control visibility, card focus, thread contents, closed-panel and reply-key assertions. I restored the file afterward; the working tree is clean. This establishes the shared scheduling mechanism with #4443, rather than a changed placement expectation.

    Restoring direct painting as a permanent fix would bypass the dependency tracking #4330 introduced for message ages. Deferring card preparation would instead require carrying the opening through the presentation pass; it should be coordinated with the contribution and focus callers at the same boundary.

    @max-sixty, this issue remains open under the presentation-contract decision in #4443. That repair needs to preserve clock tracking and verify this spilled-thread opening as well as the contribution updates; no separate workaround PR was opened.

  3. leaf-agent commented on Nov 4, 2026

    @leaf-agent
    CollaboratorAuthor

    Fixed by #4451. test_a_spilled_thread_opens_the_full_thread_without_a_hidden_anchor passed on Linux and macOS in the latest scheduled ci run, 41622727492 (2026-11-03, at 19757c94c) and in the run before it. Closing.

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