test(sandbox): 验证完整工具截止时间与进程树清理

This commit is contained in:
2026-09-08 23:09:21 +08:00
parent 1307f64aea
commit ec7271a47e
4 changed files with 142 additions and 1 deletions
@@ -175,6 +175,10 @@ impl<'a> Suspended<'a> {
}
}
impl Running<'_> {
#[cfg(test)]
pub(crate) fn active_test_processes(&self) -> Result<u32> {
self.0.job.active_processes()
}
/// Arm before dispatching a tool request; finish after receiving its result.
/// Failure to arm must prevent dispatch. This does not time server lifetime.
pub fn start_tool_call(&self) -> Result<crate::extension_deadline::ToolDeadline> {