Lightweight coding agent that runs in your terminal
Rust
chore: fix outstanding review comments from the bot on #1919 (#1928)
Michael Bolin13982d6b4e79
diff --git a/codex-rs/config.md b/codex-rs/config.mdindex e044684426..68687c560c 100644--- a/codex-rs/config.md+++ b/codex-rs/config.md@@ -276,7 +276,7 @@ sandbox_mode = "workspace-write"# Extra settings that only apply when `sandbox = "workspace-write"`.[sandbox_workspace_write]# By default, the cwd for the Codex session will be writable as well as $TMPDIR-# if set) and /tmp (if it exists). Setting the respective options to `true`+# (if set) and /tmp (if it exists). Setting the respective options to `true`# will override those defaults.exclude_tmpdir_env_var = falseexclude_slash_tmp = falsediff --git a/codex-rs/core/src/config.rs b/codex-rs/core/src/config.rsindex a2e0618a7f..081306dab1 100644--- a/codex-rs/core/src/config.rs+++ b/codex-rs/core/src/config.rs@@ -4,7 +4,7 @@ use crate::config_types::McpServerConfig;use crate::config_types::ReasoningEffort;use crate::config_types::ReasoningSummary;use crate::config_types::SandboxMode;-use crate::config_types::SandboxWorkplaceWrite;+use crate::config_types::SandboxWorkspaceWrite;use crate::config_types::ShellEnvironmentPolicy;use crate::config_types::ShellEnvironmentPolicyToml;use crate::config_types::Tui;@@ -282,7 +282,7 @@ pub struct ConfigToml {pub sandbox_mode: Option<SandboxMode>,/// Sandbox configuration to apply if `sandbox` is `WorkspaceWrite`.- pub sandbox_workspace_write: Option<SandboxWorkplaceWrite>,+ pub sandbox_workspace_write: Option<SandboxWorkspaceWrite>,/// Disable server-side response storage (sends the full conversation/// context with every request). Currently necessary for OpenAI customers@@ -361,7 +361,7 @@ impl ConfigToml {match resolved_sandbox_mode {SandboxMode::ReadOnly => SandboxPolicy::new_read_only_policy(),SandboxMode::WorkspaceWrite => match self.sandbox_workspace_write.as_ref() {- Some(SandboxWorkplaceWrite {+ Some(SandboxWorkspaceWrite {writable_roots,network_access,exclude_tmpdir_env_var,diff --git a/codex-rs/core/src/config_types.rs b/codex-rs/core/src/config_types.rsindex a81c20502b..d584a0494d 100644--- a/codex-rs/core/src/config_types.rs+++ b/codex-rs/core/src/config_types.rs@@ -93,7 +93,7 @@ pub enum SandboxMode {}#[derive(Deserialize, Debug, Clone, PartialEq, Default)]-pub struct SandboxWorkplaceWrite {+pub struct SandboxWorkspaceWrite {#[serde(default)]pub writable_roots: Vec<PathBuf>,#[serde(default)]