From b22862d04c41c86ccafab91ef99192fd7e07ba0e Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sat, 21 Mar 2026 13:14:48 -0400 Subject: [PATCH] Add clarifying comment to EventEmitter::emit() snapshot behavior Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/crates/fabro-workflows/src/event.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/crates/fabro-workflows/src/event.rs b/lib/crates/fabro-workflows/src/event.rs index 6b6fa2aa6..7ed60d346 100644 --- a/lib/crates/fabro-workflows/src/event.rs +++ b/lib/crates/fabro-workflows/src/event.rs @@ -1062,6 +1062,7 @@ impl EventEmitter { event.trace(); // Clone the listener list so we don't hold the lock during dispatch. // This prevents deadlocks if a listener calls emit() reentrantly. + // Note: listeners added during this emit() won't receive the current event. let snapshot: Vec = self .listeners .lock()