The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(backup): note that atomic_replace's cross-device fallback still truncates
briandevans60f86662e3c8
diff --git a/hermes_cli/backup.py b/hermes_cli/backup.pyindex 4f7e26c7c33..76e156c6455 100644--- a/hermes_cli/backup.py+++ b/hermes_cli/backup.py@@ -898,7 +898,11 @@ def _extract_member_atomically(symlinked target first, so a deployment that links ``config.yaml`` into adotfiles repo keeps the link instead of having it silently swapped for aregular file (GitHub #16743), and it falls back to copy/fsync/unlink on- ``EXDEV``/``EBUSY`` for cross-device and bind-mount installs.+ ``EXDEV``/``EBUSY`` for cross-device and bind-mount installs. That+ fallback uses ``shutil.copyfile``, which does truncate in place, so on the+ cross-device path the guarantee above degrades to today's behaviour rather+ than improving on it; closing that belongs in ``utils.atomic_replace``,+ where every atomic writer in the repo would benefit, not here.Permission bits *and* ownership are carried across the replace so routingthrough mkstemp does not change the file the caller would otherwise have