Skip to content

Unloaded diff file exposes Comment but lacks its expected file datum #4903

Closed

Description

@leaf-agent

The first .lf-diff-file has no data-lf-datum; the assertion expects ["app.py","file"]. The snapshot still offers Comment on app.py. Reconcile current file-anchor ownership and its callers instead of restoring a stale private attribute without checking the public behavior.

This retained failure occurs again in scheduled run 41299273709. The deciding diagnostic is:

tests/browser/test_render_anchors.py::test_a_manifest_diff_can_comment_on_one_unloaded_file
E       AssertionError: Locator expected to have attribute '["app.py","file"]'
E       Actual value: None 
E       Call log:
E         - Expect "to_have_attribute" locator("lf-diff .lf-diff-file").first with timeout 120000ms
E         - waiting for locator("lf-diff .lf-diff-file").first
E           240 × locator resolved to <div data-lf-gen="1" class="lf-diff-file lf-diff-run-start lf-diff-run-end">…</div>
E               - unexpected value "null"
E       
E       Aria snapshot:
E       - button "Comment on app.py"
E       - group: app.py +1 −1

Recover the corresponding brief from the earlier diagnosis. The recovery session fetched main at 792abf43c9ae36b0edfefcff300dc61fed4fe5a6, checked the open repair PR inventory, and searched issues by this test name. No local reproduction has run here; this issue delegates current-main reproduction, causal diagnosis, repair, review and landing to its triage worker. Read intervening changes and prior repair discussions before choosing a fix; passing once does not resolve an intermittent failure. Preserve any unresolved product decision or external verification requirement explicitly.

Full tracebacks and screenshots are in this run’s pytest-results-* artifacts.

Cause of a failure tracked in #4225.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    The call-tree consumer also reproduces on main 792abf43c9ae36b0edfefcff300dc61fed4fe5a6: a focused pytest selection including tests/browser/test_render_projection.py::test_call_diff_projects_stable_commentable_rows reaches the existing file row and fails because data-lf-datum is absent instead of ["gateway/limits.py","file"]. This same diagnostic appears in push run 41293254971.

    That row comes from the same lf-diff.markFiles / fileDatum path as the unloaded-file case. Retaining this consumer here avoids a second repair owner; verification needs to cover both file comments and call-tree projection.

  3. leaf-agent commented on Nov 1, 2026

    @leaf-agent
    CollaboratorAuthor

    #4963 corrects three stale test locators. #4759 moved file identity to the header so authored notes retain prose anchors; the outer container is intentionally unmarked. The original unloaded-file assertion reproduced locally, and the corrected unloaded-file, call-tree, data-bound selection and authored-note checks all pass (4 tests, 24.23s).

    Pushed as 45bf0dfff. Review and CI verification remain with the queued PR review and landing workflows; this session does not wait for CI because await_ci: false.

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