(
store: &Arc<dyn SessionStore>,
session_id: &str,
)
| 391 | } |
| 392 | |
| 393 | fn 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 | |
| 411 | fn load_verification_reports( |
| 412 | store: &Arc<dyn SessionStore>, |
no test coverage detected