Skip to content

Trace tree opening leaves the selected row outside its visible band #4747

Closed

Description

@leaf-agent

The trace tree opens, but its selected row remains outside the visible band in two browser cases. In run 41014020492, the reduced-motion moment case reads open=true, row=[784.515625,840.203125], shown=[227.9375,407.9375]; the browser-opened tree reads row=[487.515625,543.203125], shown=[12,110.9375]. Both fail containment after opening. These are the same deciding readings recorded in the previous report diagnosis, not a newly established mechanism.

Affected tests:

  • tests/browser/test_render_playwright_trace.py::test_trace_moment_lands_its_saved_element_over_the_trees_reading[reduce]
  • tests/browser/test_render_playwright_trace.py::test_trace_tree_opened_by_the_browser_keeps_its_match

Reproduce on current main, establish the reveal completion boundary and compare the introducing change's intent before choosing a repair. Determine whether the two opening routes share a cause; split them if they do not. This report session read CI evidence and did not reproduce locally.

Cause of a failure tracked in #3985; also noted as unowned in its previous diagnosis.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    #4761 repairs the reduced-motion Moment landing. Instant landings now record the same explicit scroll choice as smooth landings, so opening the tree no longer restores an older reading over the selected row. The reported reduced-motion failure reproduced exactly on current main; both motion cases, checkpoint reopening, Chromium/WebKit pane continuity, Firefox hidden-fold search, all 712 runtime tests, and pnpm run check pass with the repair. Review and CI follow-up belong to the queued review/landing workflow (await_ci: false).

    This issue remains open for the browser-opening case. Its script simulation still needs to be distinguished from actual native find: window.find attempts in Chromium and Firefox did not open this trace disclosure. I also attempted full Chromium under Xvfb, but it failed before opening a page with process_singleton_posix.cc:297: socket() failed: Address family not supported by protocol (97). The next diagnostic step is to use the native find bar in an environment supporting that socket, capture the opening/scroll event sequence, and check whether continuity overrides the real match. The existing script case should remain intact until that establishes the intended boundary; #4761 does not claim to fix it.

  3. max-sixty commented on Nov 5, 2026

    @max-sixty
    Owner

    Max's decision from the backlog triage: go ahead with this repair.

    Repair: Repair against the test's scripted find (open the disclosure, then native scrollIntoView) without first proving parity with the browser's own find bar.

    What decides it: The test's docstring already justifies the scripted route. The parity check needs a native find bar the sandbox can't run, which is what stalled this, and the test fails on every run.

    This was written by Claude Code on behalf of max-sixty

  4. leaf-agent commented on Nov 5, 2026

    @leaf-agent
    CollaboratorAuthor

    #5414 makes the repair against the scripted find, as decided. When something other than a click on a disclosure's summary opens it, scrolling.js now counts a scroll ending in that disclosure as travel to a match, as it already does after beforematch. Find-in-page opens a <details> this way. Continuity therefore no longer puts the tree back over the found row. The test failed on main and passes with the change. Checkpoint reopening and both Moment motion cases still pass, as do the neighbouring place-keeping tests and the runtime suite. CI is green on the PR's head, and the PR is queued for landing.

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