codex: address remaining sandbox review feedback (#16736)

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
starr-openai
2026-04-07 14:36:33 -07:00
co-authored by Codex
parent b61a0d0976
commit 0695fe1d02
17 changed files with 173 additions and 216 deletions
+1 -5
View File
@@ -1,7 +1,6 @@
use std::sync::Arc;
use async_trait::async_trait;
use codex_sandboxing::SandboxType;
use tokio::sync::watch;
use tracing::trace;
@@ -35,10 +34,7 @@ impl RemoteProcess {
impl ExecBackend for RemoteProcess {
async fn start(&self, params: ExecParams) -> Result<StartedExecProcess, ExecServerError> {
let process_id = params.process_id.clone();
let sandbox_type = params
.sandbox
.as_ref()
.map_or(SandboxType::None, |sandbox| sandbox.sandbox);
let sandbox_type = params.sandbox.sandbox;
let session = self.client.register_session(&process_id).await?;
match self.client.exec(params).await {
Ok(_) => {}