mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
## What changed - Capture the process environment when the hook registry is created and reuse that snapshot across configuration reloads. - Clear the live environment before launching command hooks and legacy notify commands, then apply hook-specific overrides and scrub non-inheritable credentials. - Resolve the default shell from the captured environment. ## Testing Add coverage for snapshot replay, overrides, credential scrubbing, default shell selection, non-Unicode values, and runtime reconfiguration. GitOrigin-RevId: fee60c88e842980cdfc1bd49b14b62b9a56b08cd