The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(tools): skills_sync_client write_sync_state uses utils.atomic_write_text (skill_usage._atomic_write was unified away)
Teknium1ce9ced0a662
diff --git a/tools/skills_sync_client.py b/tools/skills_sync_client.pyindex 354d1316a0d..ca26c45716a 100644--- a/tools/skills_sync_client.py+++ b/tools/skills_sync_client.py@@ -282,9 +282,10 @@ def read_sync_state() -> Dict[str, Any]:def write_sync_state(data: Dict[str, Any]) -> None:"""Write the local sync state atomically. Best-effort."""try:- from tools.skill_usage import _atomic_write- _atomic_write(_skills_dir() / ".sync_state", ".sync_state_",- lambda f: json.dump(data, f, indent=2, sort_keys=True, ensure_ascii=False))+ from utils import atomic_write_text+ atomic_write_text(_skills_dir() / ".sync_state",+ json.dumps(data, indent=2, sort_keys=True, ensure_ascii=False),+ tmp_prefix=".sync_state_")except Exception as e:logger.debug("skills_sync_client: sync state write failed: %s", e)