From a15e7bb4e28887121db688b29abb56beb30391c0 Mon Sep 17 00:00:00 2001 From: ayushcodes10 Date: Mon, 14 Sep 2026 16:19:43 +0530 Subject: [PATCH] Import the shared atomic replace fallback into watch.py watch.py writes graph.json via a plain Path.replace() at two call sites instead of the shared os_replace_with_fallback helper that export.py, cache.py, and install.py already route through. This adds the import with no behavior change yet; both call sites are switched over in the next two commits. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_017qfdzgbA5KedGEjD1AayNh (cherry picked from commit f3694aea49a7d1310f8b751957c35ac7174ef6e1) --- graphify/watch.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/graphify/watch.py b/graphify/watch.py index 5d8c07080..8e47f7357 100644 --- a/graphify/watch.py +++ b/graphify/watch.py @@ -12,7 +12,11 @@ from pathlib import Path from typing import Callable # Single source of truth in graphify.paths (#1423); re-exported as _GRAPHIFY_OUT. -from graphify.paths import GRAPHIFY_OUT as _GRAPHIFY_OUT, is_absolute_any_platform +from graphify.paths import ( + GRAPHIFY_OUT as _GRAPHIFY_OUT, + is_absolute_any_platform, + os_replace_with_fallback, +) logger = logging.getLogger(__name__) _PENDING_FILENAME = ".pending_changes"