mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
protocol: retain executor cwd in command events
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user