MCPcopy Index your code
hub / github.com/AI45Lab/Code / auto_save_if_enabled

Method auto_save_if_enabled

core/src/agent_api/session_persistence.rs:106–112  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

104 }
105
106 pub(super) async fn auto_save_if_enabled(&self) {
107 if self.auto_save {
108 if let Err(e) = self.save().await {
109 tracing::warn!("Auto-save failed for session {}: {}", self.session_id, e);
110 }
111 }
112 }
113
114 /// Delete the loop checkpoint for `run_id` once the run has reached a
115 /// terminal state in-process. The checkpoint exists only to survive a

Callers 3

verify_commandsMethod · 0.80
completeMethod · 0.80
wrapMethod · 0.80

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected