Skip to content

fix: avoid rewriting a retired target’s absent projection class - #4320

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4315
Oct 27, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4315

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

A hidden target keeps its overlay record after its projection class has been cleared. Retiring that record called classList.remove(), which rewrote the already empty class attribute. Use the platform's forced toggle instead, preserving the shared focus and annotation paint while avoiding that redundant mutation. This changes no rendered state.

The readiness case and both obligation-walk variants fail with the reported teardown diagnostics before the change and pass afterward. All 668 runtime tests and pnpm run check pass, and the committed kernel is rebuilt. Served ship-review previews on base and candidate each load 46 requests through upgrade and first server-state presentation, with 7 additional JavaScript bytes and no layout shifts.

The broader page-control focus projection in #4294 exposes this existing retirement path; the earlier push's JUnit records pass these three cases, while run 40423336764 records their unchanged-class writes. A temporary write-stack probe identifies paintTargets retirement as the writer after the hidden-target branch has already cleared the class.

Closes #4315 — automated triage

A hidden target retains its overlay record after projection has cleared its class. Retiring that record used classList.remove, which restates the empty class attribute. Use the platform’s forced toggle so retirement writes only when the class remains. The readiness case and both obligation-walk variants reproduce the teardown errors before this change and pass after it; their navigation and replay assertions remain intact.

Closes #4315
@leaf-agent
leaf-agent merged commit 8b8df42 into main Oct 27, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4315 branch October 27, 2026 01:25
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.

Focus projection reports unchanged class writes during navigation and startup

1 participant