| 215 | |
| 216 | impl FileWatcher for FallbackWatcher { |
| 217 | fn begin_turn( |
| 218 | &mut self, |
| 219 | session_id: &str, |
| 220 | ) -> Pin<Box<dyn Future<Output = AgentResult<()>> + Send + '_>> { |
| 221 | let session_id = session_id.to_string(); |
| 222 | Box::pin(async move { |
| 223 | let snapshot = take_snapshot(self.config.repo_root(), self.config.ignore_patterns())?; |
| 224 | |
| 225 | self.pre_snapshot = Some(snapshot); |
| 226 | self.active_session = Some(session_id); |
| 227 | Ok(()) |
| 228 | }) |
| 229 | } |
| 230 | |
| 231 | fn end_turn(&mut self) -> Pin<Box<dyn Future<Output = AgentResult<TurnChanges>> + Send + '_>> { |
| 232 | Box::pin(async move { |