mirror of
https://github.com/openai/codex.git
synced 2026-10-27 18:48:37 +00:00
test: fix sandbox manager argument comment
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -693,7 +693,7 @@ fn process_exec_tool_call_uses_platform_sandbox_for_network_only_restrictions()
|
||||
NetworkSandboxPolicy::Restricted,
|
||||
codex_sandboxing::SandboxablePreference::Auto,
|
||||
codex_protocol::config_types::WindowsSandboxLevel::Disabled,
|
||||
/*enforce_managed_network*/ false,
|
||||
/*has_managed_network_requirements*/ false,
|
||||
),
|
||||
expected
|
||||
);
|
||||
|
||||
@@ -66,4 +66,5 @@ pub use protocol::WriteStatus;
|
||||
pub use server::DEFAULT_LISTEN_URL;
|
||||
pub use server::ExecServerListenUrlParseError;
|
||||
pub use server::run_main;
|
||||
pub use server::run_main_with_listen_url;
|
||||
pub use server::run_main_with_runtime;
|
||||
|
||||
@@ -10,7 +10,13 @@ pub use transport::DEFAULT_LISTEN_URL;
|
||||
pub use transport::ExecServerListenUrlParseError;
|
||||
|
||||
pub async fn run_main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
run_main_with_runtime(DEFAULT_LISTEN_URL, crate::ExecServerRuntimeConfig::detect()).await
|
||||
run_main_with_listen_url(DEFAULT_LISTEN_URL).await
|
||||
}
|
||||
|
||||
pub async fn run_main_with_listen_url(
|
||||
listen_url: &str,
|
||||
) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
run_main_with_runtime(listen_url, crate::ExecServerRuntimeConfig::detect()).await
|
||||
}
|
||||
|
||||
pub async fn run_main_with_runtime(
|
||||
|
||||
Reference in New Issue
Block a user