From 3bc38db4e37e4e67083269d1c4f808e47dc092c9 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 12 May 2026 23:23:26 +0200 Subject: [PATCH] Update watcher to pass None for file_id in FileRemoved events Watcher doesn't have access to file_id; indexer handles fallback via metadata lookup or remove_by_path Ultraworked with [Sisyphus](https://github.com/code-yeongyu/claude-agent) Co-authored-by: Sisyphus --- musicfs/crates/musicfs-sync/src/watcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/musicfs/crates/musicfs-sync/src/watcher.rs b/musicfs/crates/musicfs-sync/src/watcher.rs index e940109..1c212d8 100644 --- a/musicfs/crates/musicfs-sync/src/watcher.rs +++ b/musicfs/crates/musicfs-sync/src/watcher.rs @@ -122,7 +122,7 @@ impl OriginWatcher { } EventKind::Remove(_) => { debug!("File removed: {:?}", relative); - event_bus.publish(Event::FileRemoved { path: vpath }); + event_bus.publish(Event::FileRemoved { path: vpath, file_id: None }); } EventKind::Modify(_) => { debug!("File modified: {:?}", relative);