Add session id env var for shell commands

This commit is contained in:
abarron-oai
2026-02-03 10:55:04 -08:00
parent d550fbf41a
commit 0f28702e30
2 changed files with 7 additions and 0 deletions

View File

@@ -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