mirror of
https://github.com/openai/codex.git
synced 2026-11-24 15:21:20 +00:00
Run hooks with the captured session environment (#39314)
## 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
This commit is contained in:
1 parent
fb356f3d2c
commit
4d8c664a49
6 files changed
+241
-32
No files matched your search
@@ -74,13 +74,11 @@ pub use events::stop::StopRequest;
|
||||
pub use events::user_prompt_submit::UserPromptSubmitOutcome;
|
||||
pub use events::user_prompt_submit::UserPromptSubmitRequest;
|
||||
pub use legacy_notify::legacy_notify_json;
|
||||
pub use legacy_notify::notify_hook;
|
||||
pub use mcp::HookMcpCall;
|
||||
pub use mcp::HookMcpExecutor;
|
||||
pub use registry::HookListOutcome;
|
||||
pub use registry::Hooks;
|
||||
pub use registry::HooksConfig;
|
||||
pub use registry::command_from_argv;
|
||||
pub use registry::list_hooks;
|
||||
pub use schema::write_schema_fixtures;
|
||||
pub use types::Hook;
|
||||
|
||||
Reference in new issue
Block a user