Look up a delegated subagent task by id. Returns `None` if no such task has been observed in this session.
(
&self,
task_id: &str,
)
| 841 | /// Look up a delegated subagent task by id. Returns `None` if no such task |
| 842 | /// has been observed in this session. |
| 843 | pub async fn subagent_task( |
| 844 | &self, |
| 845 | task_id: &str, |
| 846 | ) -> Option<crate::subagent_task_tracker::SubagentTaskSnapshot> { |
| 847 | self.subagent_tasks.get(task_id).await |
| 848 | } |
| 849 | |
| 850 | /// Return snapshots of every delegated subagent task observed in this |
| 851 | /// session (including completed and failed ones), oldest first. |