mirror of
https://github.com/openai/codex.git
synced 2026-05-15 08:42:34 +00:00
Document shared environment manager handle
Clarify that SessionServices carries an Arc handle to the process-level EnvironmentManager rather than owning a session-specific manager. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -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<EnvironmentManager>,
|
||||
pub(crate) environment: Option<Arc<Environment>>,
|
||||
pub(crate) allows_agent_environment_access: bool,
|
||||
|
||||
Reference in New Issue
Block a user