Lightweight coding agent that runs in your terminal
Rust
Increased file watcher debounce duration from 1s to 10s (#11494)
Eric Traut81c534102edc
diff --git a/codex-rs/core/src/file_watcher.rs b/codex-rs/core/src/file_watcher.rsindex 427d5b6e4e..bfd00204d5 100644--- a/codex-rs/core/src/file_watcher.rs+++ b/codex-rs/core/src/file_watcher.rs@@ -39,7 +39,7 @@ struct FileWatcherInner {watched_paths: HashMap<PathBuf, RecursiveMode>,}-const WATCHER_THROTTLE_INTERVAL: Duration = Duration::from_secs(1);+const WATCHER_THROTTLE_INTERVAL: Duration = Duration::from_secs(10);/// Coalesces bursts of paths and emits at most once per interval.struct ThrottledPaths {