mirror of
https://github.com/openai/codex.git
synced 2026-11-29 00:00:54 +00:00
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:
@@ -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()?;
|
||||
|
||||
Reference in New Issue
Block a user