mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
Codex review on PR #114 flagged that `layerResetIfChanged` cleared `containerLayoutCache` and `expandedContainers` but left `pendingFocusContainer` intact. Because container ids collide across layers (the very reason the cache reset exists), a manual expand in layer A that hadn't yet hit its 1.2s clear timer could leak its id into layer B's namespace and recenter the viewport on an unrelated container right after navigation. The same hazard applies to every other reset path that drops the container caches. Add `pendingFocusContainer: null` to all of them: - layerResetIfChanged (tour cross-layer reset, the originally flagged site) - drillIntoLayer - navigateToOverview - setFocusNode - setPersona - setGraph - toggleNodeTypeFilter - clearContainerLayouts Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>