Thread executor attachment through tool handlers

This commit is contained in:
starr-openai
2026-04-01 20:46:18 -07:00
parent adbec5ab37
commit b79227baf3
23 changed files with 563 additions and 174 deletions

View File

@@ -132,6 +132,8 @@ pub async fn test_env() -> Result<TestEnv> {
let environment = codex_exec_server::Environment::create(Some(websocket_url)).await?;
let cwd = remote_aware_cwd_path();
environment
.executor_attachment()
.expect("remote test environment has an executor attachment")
.get_filesystem()
.create_directory(
&absolute_path(&cwd)?,
@@ -663,7 +665,11 @@ impl TestCodex {
}
pub fn fs(&self) -> Arc<dyn ExecutorFileSystem> {
self._test_env.environment().get_filesystem()
self._test_env
.environment()
.executor_attachment()
.expect("test environment has an executor attachment")
.get_filesystem()
}
pub async fn submit_turn(&self, prompt: &str) -> Result<()> {