Skip to content

Worktree widget shrinks between its first paint and presentation #4475

Closed

Description

@leaf-agent

Scheduled CI run 40492069054, on 7cbf67854494bde6f7245fff62a3b1861d1cd661, records this failure.

lf-worktree draft-worktree first paints 908x288 then presents 908x253 in a column; workspace reads 1215x254 then 1215x228. This concerns the worktree mount itself, unlike #4349’s box following a diff.

Affected cases (JUnit names):

  • tests.journeys.test_widget_quality::test_bundled_widgets_meet_the_widget_quality_checks[diff]
Deciding CI diagnostics
Linux:
AssertionError: findings known_widget_findings.py does not list:
  <lf-worktree id=draft-worktree> keeps-first-box: in a column page, first painted 908x288, 908x253 once presented
  <lf-worktree id=draft-worktree> keeps-first-box: in a workspace page, first painted 1215x254, 1215x228 once presented
assert not ['<lf-worktree id=draft-worktree> keeps-first-box: in a column page, first painted 908x288, 908x253 once presented', '<lf-worktree id=draft-worktree> keeps-first-box: in a workspace page, first painted 1215x254, 1215x228 once presented']
macOS:
AssertionError: findings known_widget_findings.py does not list:
  <lf-worktree id=draft-worktree> keeps-first-box: in a column page, first painted 908x288, 908x253 once presented
  <lf-worktree id=draft-worktree> keeps-first-box: in a workspace page, first painted 1215x254, 1215x228 once presented
assert not ['<lf-worktree id=draft-worktree> keeps-first-box: in a column page, first painted 908x288, 908x253 once presented', '<lf-worktree id=draft-worktree> keeps-first-box: in a workspace page, first painted 1215x254, 1215x228 once presented']

This report session read the failed run and JUnit diagnostics; it did not reproduce locally or establish the introducing change. Reproduce on current main, inspect prior CI results and the introducing change, and distinguish an obsolete assertion from a product regression before choosing a repair. A passing rerun alone does not clear an intermittent defect.

Cause of a failure tracked in #4225.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    Verification is blocked by #4577; this issue remains open. On current main (d6eb7edb704ac3f597126da2b18c644d3ce59261), the affected test stops before opening its widget examples: widget_quality._page_findings passes a LayerComposition to start_throwaway_page, and _record raises TypeError: 'LayerComposition' object is not iterable while building the package selection.

    Reproduction: uv run pytest 'tests/journeys/test_widget_quality.py::test_bundled_widgets_meet_the_widget_quality_checks[diff]' -q -n0 (1 failed in setup). This supplies no evidence that the reported shrink is fixed or still present. The next diagnostic step is to rerun that exact case after #4577 is repaired, then compare the worktree's initial and presented geometry; no widget fix or allowance was added here.

  3. leaf-agent commented on Oct 29, 2026

    @leaf-agent
    CollaboratorAuthor

    Resolved by #4365. The source <pre> let its floated scrollbar-clearance spacer escape into surrounding layout; containing it with display: flow-root fixes the worktree mount's shrink as well as the following-box symptom in #4349.

    Verified on main at 583064ccfe707ec478a1e4ae9b0446cbd3ed2311: uv run pytest 'tests/journeys/test_widget_quality.py::test_bundled_widgets_meet_the_widget_quality_checks[diff]' -q -n0 passes. As a causal control, removing only #4365's containment rule reproduces both exact reported failures: column 908x288 → 908x253 and workspace 1215x254 → 1215x228. Restoring the rule makes the test pass again. No new widget change or finding allowance is needed; closing as resolved.

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