From f64ad94f2e556d7535e2c435c713325eecc9c053 Mon Sep 17 00:00:00 2001 From: starr-openai Date: Thu, 16 Apr 2026 13:56:43 -0700 Subject: [PATCH] Rename environment provider trait Co-authored-by: Codex --- codex-rs/exec-server/src/environment.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/codex-rs/exec-server/src/environment.rs b/codex-rs/exec-server/src/environment.rs index d12c9495c9..bcf1fb5f8c 100644 --- a/codex-rs/exec-server/src/environment.rs +++ b/codex-rs/exec-server/src/environment.rs @@ -35,7 +35,7 @@ struct EnvironmentConfig { /// Resolves the current or explicitly selected execution environment for a /// session. -pub trait EnvironmentResolver: Send + Sync + std::fmt::Debug { +pub trait EnvironmentProvider: Send + Sync + std::fmt::Debug { async fn current(&self) -> Result>, ExecServerError>; async fn environment( @@ -223,7 +223,7 @@ impl EnvironmentManager { } } -impl EnvironmentResolver for EnvironmentManager { +impl EnvironmentProvider for EnvironmentManager { /// Returns the cached environment, creating it on first access. async fn current(&self) -> Result>, ExecServerError> { self.current_environment @@ -268,21 +268,21 @@ impl EnvironmentResolver for EnvironmentManager { impl EnvironmentManager { pub async fn current(&self) -> Result>, ExecServerError> { - ::current(self).await + ::current(self).await } pub async fn environment( &self, environment_id: Option<&str>, ) -> Result>, ExecServerError> { - ::environment(self, environment_id).await + ::environment(self, environment_id).await } pub fn default_cwd( &self, environment_id: Option<&str>, ) -> Result, ExecServerError> { - ::default_cwd(self, environment_id) + ::default_cwd(self, environment_id) } async fn local_environment(&self) -> Result, ExecServerError> {