MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / begin_turn

Method begin_turn

atomic-agent/src/watcher/fallback.rs:217–229  ·  view source on GitHub ↗
(
        &mut self,
        session_id: &str,
    )

Source from the content-addressed store, hash-verified

215
216impl 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 {

Calls 3

take_snapshotFunction · 0.85
ignore_patternsMethod · 0.80
repo_rootMethod · 0.45