MCPcopy Create free account
hub / github.com/GCWing/BitFun / restore_session

Method restore_session

src/apps/cli/src/agent/core_adapter.rs:308–319  ·  view source on GitHub ↗
(&self, session_id: &str)

Source from the content-addressed store, hash-verified

306 }
307
308 async fn restore_session(&self, session_id: &str) -> Result<()> {
309 tracing::info!("Restoring session: {}", session_id);
310 let workspace = self.workspace_path_buf();
311 self.coordinator
312 .restore_session(&workspace, session_id)
313 .await?;
314
315 let mut session_id_guard = self.session_id.lock().await;
316 *session_id_guard = Some(session_id.to_string());
317
318 Ok(())
319 }
320
321 async fn confirm_tool(
322 &self,

Callers 6

handle_session_actionFunction · 0.45
runMethod · 0.45
switch_to_sessionMethod · 0.45
prepare_sessionMethod · 0.45

Calls 1

workspace_path_bufMethod · 0.45

Tested by

no test coverage detected