Skip to content

Avoid unchanged writes when opening native diff disclosures - #3545

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-39741006770-diff-open
Oct 22, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-39741006770-diff-open

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Native diff and call-tree disclosures wrote open even when it already held the requested value. The browser write watcher reported these repeated writes across diff navigation and projection tests. This change checks the current state before each write, retaining the same disclosure behavior.

The failure appears in main CI run 39741006770, after #3536 moved these controls to native details. The changed-file, call-tree continuity, and phone-header browser cases passed locally, as did pnpm run check:browser.

@leaf-agent
leaf-agent merged commit 7723a9d into main Oct 22, 2026
4 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-39741006770-diff-open branch October 22, 2026 09:51
leaf-agent added a commit that referenced this pull request Oct 22, 2026
The browser shift watcher marked the next diff file's movement during a
native disclosure close as unprompted. In the failing file-tree case,
the closing `details` shrank over successive frames, but Chrome returned
no animation from its shadow root's `getAnimations()` for the
`::details-content` transition. The watcher now follows the closing
interval after an `open` mutation, reads each frame, and credits only
matching upward movement of a later box in the same flow.

The file-tree patch case failed on current main with an uncredited 8 px
move and passed with this change. Focused checks passed 87 shift-watcher
and diff-header cases; the file-view case in that selection still
reported the separate unchanged `open` write addressed by #3545.
Pre-commit passed. This addresses the motion findings in [main CI run
39741006770](https://github.com/max-sixty/leaf/actions/runs/39741006770).

Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Oct 22, 2026
Chromium reported the same lazy image issue twice for one iframe in each
color scheme in [main CI run
39750772164](https://github.com/max-sixty/leaf/actions/runs/39750772164).
The render gate test treated the event count as part of its contract and
failed, even though it located every expected issue at the correct
authored node. Compare the reported scheme, node, and issue type as a
set; keep checking every issue's media URL.

The focused render gate case passes on this branch. The other failures
in that run have separate fixes on `main` in #3545–#3548.

Co-authored-by: leaf-agent <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant