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> {