protocol: retain executor cwd in command events

This commit is contained in:
Adam Perry
2026-06-13 06:26:43 +00:00
parent 385e9e546a
commit 7d8a9ef36b
13 changed files with 275 additions and 85 deletions
+3 -1
View File
@@ -33,6 +33,7 @@ use codex_protocol::models::AdditionalPermissionProfile;
use codex_tools::UnifiedExecShellMode;
use codex_utils_absolute_path::AbsolutePathBuf;
use codex_utils_output_truncation::TruncationPolicy;
use codex_utils_path_uri::PathConvention;
use codex_utils_path_uri::PathUri;
use rand::Rng;
use rand::rng;
@@ -97,9 +98,10 @@ pub(crate) struct ExecCommandRequest {
pub environment_id: String,
pub yield_time_ms: u64,
pub max_output_tokens: Option<usize>,
/// App-host-compatible cwd retained for approval and event compatibility.
/// App-host-compatible cwd retained for local sandbox and approval handling.
pub cwd: AbsolutePathBuf,
pub cwd_uri: PathUri,
pub path_convention: PathConvention,
pub sandbox_cwd: Option<AbsolutePathBuf>,
pub environment: Arc<Environment>,
pub shell_mode: UnifiedExecShellMode,