Share a tracker with this executor. When set, each task registers a `CancellationToken` against the tracker so the parent session can cancel by `task_id`.
(
mut self,
tracker: Arc<crate::subagent_task_tracker::InMemorySubagentTaskTracker>,
)
| 255 | /// a `CancellationToken` against the tracker so the parent session |
| 256 | /// can cancel by `task_id`. |
| 257 | pub fn with_subagent_tracker( |
| 258 | mut self, |
| 259 | tracker: Arc<crate::subagent_task_tracker::InMemorySubagentTaskTracker>, |
| 260 | ) -> Self { |
| 261 | self.subagent_tracker = Some(tracker); |
| 262 | self |
| 263 | } |
| 264 | |
| 265 | /// Execute a task by spawning an isolated child AgentLoop. |
| 266 | /// |
no outgoing calls
no test coverage detected