mirror of
https://github.com/openai/codex.git
synced 2026-11-27 15:30:27 +00:00
Add in-memory shell snapshots to unified exec (#39957)
## What changed - Add the under-development `shell_snapshot_v2` feature and advertise executor support through environment capabilities. - Use executor-managed, in-memory snapshots for eligible direct `bash`, `zsh`, and `sh` login commands, while applying the configured shell environment policy and avoiding duplicate automatic startup-file effects. - Keep file-backed snapshots available for user-shell commands and fall back to the existing execution path when in-memory snapshots are unsupported or inapplicable. ## Testing - Cover policy filtering, snapshot reuse without snapshot files, automatic startup files, local and remote execution, and legacy user-shell snapshots. GitOrigin-RevId: 4ad6cdf13824913ac8c393ba38b9844230677579
This commit is contained in:
1 parent
d446960657
commit
3882ced09c
17 files changed
+299
-34
No files matched your search
@@ -52,6 +52,7 @@ pub struct ExecRequest {
|
||||
pub cwd: PathUri,
|
||||
pub env: HashMap<String, String>,
|
||||
pub(crate) exec_server_env_config: Option<ExecServerEnvConfig>,
|
||||
pub(crate) exec_server_shell_snapshot: Option<codex_exec_server::ShellSnapshotRequest>,
|
||||
pub network: Option<NetworkProxy>,
|
||||
pub network_environment_id: Option<String>,
|
||||
pub expiration: ExecExpiration,
|
||||
@@ -94,6 +95,7 @@ impl ExecRequest {
|
||||
cwd,
|
||||
env,
|
||||
exec_server_env_config: None,
|
||||
exec_server_shell_snapshot: None,
|
||||
network,
|
||||
network_environment_id,
|
||||
expiration,
|
||||
@@ -182,6 +184,7 @@ impl ExecRequest {
|
||||
cwd,
|
||||
env,
|
||||
exec_server_env_config: None,
|
||||
exec_server_shell_snapshot: None,
|
||||
network,
|
||||
network_environment_id,
|
||||
expiration,
|
||||
|
||||
Reference in new issue
Block a user