mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-17 12:56:41 +02:00
d04d13ea22
disposeDirectory called a createRoot dispose() synchronously. When triggered by pinForOwner's onCleanup during a parent remount (e.g. switching to a WSL server re-keys the ServerKey Show), the inner dispose ran a nested cleanNode cascade on a sibling root while the outer cascade was mid-traversal, corrupting solid-js's graph walk state and surfacing as TypeError: Cannot read properties of null (reading '1') at chunk-*.js:992 after ~155 recursive cleanNode frames. Queue the dispose on a microtask so synchronous bookkeeping still runs (map deletes, onDispose cache invalidation) but the reactive cleanup happens after the outer traversal finishes.