Skip to content

Release detached nodes from the swap watch - #3773

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-39989830023-swap-retention
Oct 23, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-39989830023-swap-retention

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The swap watch now releases detached nodes outside tracked flex rows and drops detached attribute targets from its pending write set. The watch retained these nodes until another ResizeObserver reading; the focus lifetime test could therefore find old markup still alive after collection. Tracked row departures still reach the swap judgment.

Main CI run 39989830023 failed six variants of test_internal_focus_moves_publish_before_old_markup_is_collected. I reproduced intermittent failures on current main, and all eight variants pass with this change. The swap watch's eleven positive and negative cases pass, as do Prettier and ESLint. The run's three phone comment failures already pass on current main after #3771; I ran those three cases locally too.

This was referenced Oct 23, 2026
@leaf-agent
leaf-agent merged commit 01a7657 into main Oct 23, 2026
2 of 3 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-39989830023-swap-retention branch October 23, 2026 18:19
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