Add optional file_id to FileRemoved event for index cleanup

Oracle fix: FileRemoved now includes Option<FileId> to enable
direct index deletion without metadata lookup race condition

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/claude-agent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Alexander
2026-05-12 23:23:19 +02:00
parent 3f389c2daa
commit 61d04b4c77
+2 -1
View File
@@ -1,4 +1,4 @@
use crate::types::{OriginId, VirtualPath};
use crate::types::{FileId, OriginId, VirtualPath};
use tokio::sync::broadcast;
pub struct EventBus {
@@ -34,6 +34,7 @@ pub enum Event {
},
FileRemoved {
path: VirtualPath,
file_id: Option<FileId>,
},
FileModified {
path: VirtualPath,