Files
Vance Ingalls 8be6f33ee3 fix(sdk): agree removeElement/getElement on duplicate bare ids
A bare hf-id duplicated across a sub-composition element and a top-level
element resolved to different instances: removeElement → resolveScoped →
querySelector (document-order-first, the inner sub-comp dup) while getElement
preferred the canonical match (scopedId === id, the top-level dup). So
removeElement(bareId) removed the inner instance and getElement(bareId) still
found the surviving top-level one — they disagreed.

resolveScoped now resolves an ambiguous BARE id to the canonical (top-level)
instance via isCanonicalScope (walks ancestors for isNewHostBoundary), falling
back to document order when no canonical match exists — matching getElement.
Fully-scoped paths (hf-host/hf-dup) and non-duplicated bare ids are unchanged.

Surfaced by SDK shadow parity (op:delete expected removed, actual present).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 12:29:09 -07:00
..
2026-06-16 13:16:09 -04:00
2026-06-16 13:16:09 -04:00
2026-06-16 13:16:09 -04:00
2026-06-16 13:16:09 -04:00
2026-06-16 13:16:09 -04:00
2026-06-16 13:16:09 -04:00
2026-06-16 13:16:09 -04:00
2026-06-16 13:16:09 -04:00