From cc5c6d1d9f781f2c9e62cfcdd268ef5301bd249b Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Tue, 27 Jan 2026 00:51:27 -0800 Subject: [PATCH] Test fix --- codex-rs/core/src/thread_manager.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codex-rs/core/src/thread_manager.rs b/codex-rs/core/src/thread_manager.rs index 98ba4cdb71..699044dbde 100644 --- a/codex-rs/core/src/thread_manager.rs +++ b/codex-rs/core/src/thread_manager.rs @@ -42,11 +42,13 @@ use tracing::warn; const THREAD_CREATED_CHANNEL_CAPACITY: usize = 1024; fn build_file_watcher(codex_home: PathBuf, skills_manager: Arc) -> Arc { + #[cfg(any(test, feature = "test-support"))] if let Ok(handle) = Handle::try_current() && handle.runtime_flavor() == RuntimeFlavor::CurrentThread { // The real watcher spins background tasks that can starve the // current-thread test runtime and cause event waits to time out. + // Integration tests compile with the `test-support` feature. warn!("using noop file watcher under current-thread test runtime"); return Arc::new(FileWatcher::noop()); }