Remove private executor directory creation (#39736)

## What changed

- Create remote plugin metrics directories through the standard executor filesystem API.
- Remove the `private` directory-creation protocol option and its platform-specific handling.
- Update the executor temporary-directory documentation to describe child-visible sidecars without an owner-private guarantee.

GitOrigin-RevId: 9a8532403a3ad2bf998281735be0b668893918c9
This commit is contained in:
rhan-oai
2026-08-20 16:22:45 +00:00
committed by copyberry
parent bf2aee99c5
commit 8c828b18d6
6 changed files with 13 additions and 150 deletions
@@ -1,5 +1,6 @@
use crate::ResolvedPluginMetricsOperation;
use codex_analytics::PluginMeasurementRow;
use codex_exec_server::CreateDirectoryOptions;
use codex_exec_server::Environment;
use codex_exec_server::ExecutorFileSystem;
use codex_exec_server::FileSystemReadStream;
@@ -142,12 +143,20 @@ impl PluginMetricsSidecar {
.join(&format!("codex-plugin-metrics-{execution_id}"))
.ok()?;
let absolute_output_dir = directory_path.to_abs_path().ok()?;
environment
.create_private_directory(&directory_path)
let filesystem = environment.get_filesystem();
filesystem
.create_directory(
&directory_path,
CreateDirectoryOptions {
recursive: false,
follow_symlinks: true,
},
/*sandbox*/ None,
)
.await
.ok()?;
let directory = RemotePluginMetricsDirectory {
filesystem: environment.get_filesystem(),
filesystem,
path: directory_path,
};
let output_path = directory.path.join("measurements.json").ok()?;