mirror of
https://github.com/openai/codex.git
synced 2026-11-28 23:34:06 +00:00
Route skill discovery and loading through EnvironmentAccess (#46293)
## What changed Use `EnvironmentAccess` for skill discovery, environment skill loading, and plugin namespace resolution, replacing direct `ExecutorFileSystem` calls with explicit `None` sandbox arguments. Wrap existing host and executor filesystems with `FileSystemEnvironmentAccessor::unrestricted` to preserve their current access behavior. Update discovery, loading, and namespace tests to use the same adapter. GitOrigin-RevId: d68168cc0ee19dc303ef4ee726cf1de1a8db81e0
This commit is contained in:
1 parent
93321c88d8
commit
47fc8d661e
10 files changed
+62
-61
No files matched your search
@@ -3,6 +3,7 @@ use std::collections::HashSet;
|
||||
use std::sync::Arc;
|
||||
|
||||
use codex_exec_server::EnvironmentManager;
|
||||
use codex_exec_server::FileSystemEnvironmentAccessor;
|
||||
use codex_exec_server::FileSystemSandboxContext;
|
||||
use codex_extension_api::SelectedPluginSnapshot;
|
||||
use codex_protocol::capabilities::CapabilityRootLocation;
|
||||
@@ -113,8 +114,10 @@ impl SkillProvider for ExecutorSkillProvider {
|
||||
));
|
||||
continue;
|
||||
};
|
||||
// TODO(anp): Take this accessor from the selected turn root when discovery receives
|
||||
// turn permissions; until then, preserve direct access through its existing filesystem.
|
||||
let outcome = load_environment_skills_from_root(
|
||||
file_system.as_ref(),
|
||||
&FileSystemEnvironmentAccessor::unrestricted(&file_system),
|
||||
path,
|
||||
self.restriction_product,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user