mirror of
https://github.com/openai/codex.git
synced 2026-04-30 01:16:54 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user