mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-14 18:01:20 +08:00
8344a02f8f
Address review feedback on PR #1016: the typeof guards are a symptom fix — the real issue is stale refs accumulating in tracked collections. Root-cause fix: prune disconnected elements from metadataBoundMedia during each rebind cycle in init.ts so removed DOM nodes don't linger. Observability: emit a once-per-session `guard_triggered` event via CustomEvent → trackStudioEvent when a typeof guard trips in ParentMediaManager, so we keep a low-volume signal for upstream data-structure invariant violations without re-flooding telemetry.