Skip to content

Commit 9704ef0

Browse files
authored
fix: File watcher not picking up local file changes (#207)
1 parent 4d29678 commit 9704ef0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/array/src/main/services/fileWatcher.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ class FileService {
124124

125125
for (const event of events) {
126126
state.pendingDirs.add(path.dirname(event.path));
127-
if (event.type === "update") {
127+
128+
// Handle both "update" and "create" events as file changes
129+
// Atomic writes (like the claude code Write tool) produce "create"
130+
// events because they write to a temp file then rename/move it
131+
if (event.type === "update" || event.type === "create") {
128132
state.pendingFiles.add(event.path);
129133
} else if (event.type === "delete") {
130134
state.pendingDeletes.add(event.path);

0 commit comments

Comments
 (0)