MCPcopy Create free account
hub / github.com/AI45Lab/Code / load_subagent_tasks

Function load_subagent_tasks

core/src/agent_api/session_persistence.rs:393–409  ·  view source on GitHub ↗
(
    store: &Arc<dyn SessionStore>,
    session_id: &str,
)

Source from the content-addressed store, hash-verified

391}
392
393fn load_subagent_tasks(
394 store: &Arc<dyn SessionStore>,
395 session_id: &str,
396) -> Result<Option<Vec<crate::subagent_task_tracker::SubagentTaskSnapshot>>> {
397 match tokio::runtime::Handle::try_current() {
398 Ok(handle) => {
399 tokio::task::block_in_place(|| handle.block_on(store.load_subagent_tasks(session_id)))
400 .map_err(|e| {
401 CodeError::Session(format!(
402 "Failed to load subagent tasks for session {}: {}",
403 session_id, e
404 ))
405 })
406 }
407 Err(_) => Ok(None),
408 }
409}
410
411fn load_verification_reports(
412 store: &Arc<dyn SessionStore>,

Callers 1

Calls 3

block_onMethod · 0.80
SessionClass · 0.50
load_subagent_tasksMethod · 0.45

Tested by

no test coverage detected