chore: update unified exec sandboxing detection (#7541)

No integration test for now because it would make them flaky. Tracking
it in my todos to add some once we have a clock based system for
integration tests
This commit is contained in:
jif-oai
2025-12-03 20:06:47 +00:00
committed by GitHub
parent 2ad980abf4
commit 8d0f023fa9
4 changed files with 56 additions and 11 deletions

View File

@@ -485,6 +485,19 @@ pub struct ExecToolCallOutput {
pub timed_out: bool,
}
impl Default for ExecToolCallOutput {
fn default() -> Self {
Self {
exit_code: 0,
stdout: StreamOutput::new(String::new()),
stderr: StreamOutput::new(String::new()),
aggregated_output: StreamOutput::new(String::new()),
duration: Duration::ZERO,
timed_out: false,
}
}
}
#[cfg_attr(not(target_os = "windows"), allow(unused_variables))]
async fn exec(
params: ExecParams,