mirror of
https://github.com/openai/codex.git
synced 2026-05-03 12:52:11 +03:00
Add session id env var for shell commands
This commit is contained in:
@@ -4,6 +4,8 @@ use crate::config::types::ShellEnvironmentPolicyInherit;
|
||||
use std::collections::HashMap;
|
||||
use std::collections::HashSet;
|
||||
|
||||
pub const CODEX_SESSION_ID_ENV_VAR: &str = "CODEX_SESSION_ID";
|
||||
|
||||
/// Construct an environment map based on the rules in the specified policy. The
|
||||
/// resulting map can be passed directly to `Command::envs()` after calling
|
||||
/// `env_clear()` to ensure no unintended variables are leaked to the spawned
|
||||
|
||||
Reference in New Issue
Block a user