heatsync stability fixes #98

Manually merged
cadence merged 1 commit from l1s5/out-of-your-element:heatsync-fixes into main 2026-10-26 11:25:52 +00:00

1 commit

Author SHA1 Message Date
e2ed40da61
heatsync: do not hot reload on ctime-only changes
`fs.watchFile()` calls its listener on all changes to any file attribute,
including `ctime`. Hardlinking a file changes its `ctime`, which is
what `nix store optimize` does when it deduplicates identical files,
causing an unnecessary reload in production environments.

This change makes it so we completely ignore ctime changes, and only
reload when mtime/size changes.
2026-10-25 03:00:07 +09:00