You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: correct array sync to preserve identity matching during subset operations
Fixed a bug in syncArraySlice where the target array was prematurely truncated
by position before reorderArrayElements could match elements by RootNode identity.
This caused elements at higher indices to be discarded even when they should have
been matched and retained.
The fix defers array resizing until after the sync loop completes, allowing
reorderArrayElements to search all target elements for identity matches first.
Added dereferenceToLastPtr utility for cleaner pointer chain handling.
Added TestSync_ArraySubset_Debug to verify syncing a smaller high-level model
(3 items) to a larger pre-existing core model (6 items) correctly matches by
identity, removes unmatched items, and preserves the correct order.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments