mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Project-mode agent sync re-reported every agent as updated on the second sync when the project lived under a symlinked ancestor (e.g. macOS temp dirs under /var -> /private/var), failing idempotency on macOS CI. Two interacting causes: - shouldUseRelative was unstable: on the first sync the target directory does not exist yet, so evalOrClean fell back to a non-resolved path and the under-project-root check failed, producing an absolute link; on the second sync the directory existed and resolved, so it wanted a relative link and reformatted the existing one. evalOrClean now resolves the deepest existing ancestor and re-appends the missing tail, so the answer is the same whether or not the leaf exists. - The existing-symlink comparison only did a direct string compare, so a stable relative link whose resolved target carried the unresolved alias prefix looked like it pointed elsewhere. It now canonicalizes both sides via EvalSymlinks on the slow path, mirroring isSymlinkToSource. Adds a regression test that reproduces the symlinked-ancestor case on any platform.