diff --git a/codex-rs/core/src/state/service.rs b/codex-rs/core/src/state/service.rs index 6e42227b6b..29fb5eb1d2 100644 --- a/codex-rs/core/src/state/service.rs +++ b/codex-rs/core/src/state/service.rs @@ -65,6 +65,8 @@ pub(crate) struct SessionServices { /// Session-scoped model client shared across turns. pub(crate) model_client: ModelClient, pub(crate) code_mode_service: CodeModeService, + /// Shared process-level environment registry. Sessions carry an `Arc` handle so they can pass + /// the same manager through child-thread spawn paths without reconstructing it. pub(crate) environment_manager: Arc, pub(crate) environment: Option>, pub(crate) allows_agent_environment_access: bool,