mirror of
https://github.com/openai/codex.git
synced 2026-11-06 20:20:34 +00:00
codex: fix tui plugin cwd request
This commit is contained in:
@@ -6075,7 +6075,7 @@ async fn fetch_plugins_list(
|
||||
.request_typed(ClientRequest::PluginList {
|
||||
request_id,
|
||||
params: PluginListParams {
|
||||
cwds: Some(vec![cwd]),
|
||||
cwds: Some(vec![cwd.to_path_buf()]),
|
||||
force_remote_sync: false,
|
||||
},
|
||||
})
|
||||
|
||||
@@ -51,8 +51,12 @@ async fn preset_matching_accepts_workspace_write_with_extra_roots() {
|
||||
.into_iter()
|
||||
.find(|p| p.id == "auto")
|
||||
.expect("auto preset exists");
|
||||
#[cfg(target_os = "windows")]
|
||||
let extra_root = PathBuf::from("C:\\extra");
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
let extra_root = PathBuf::from("/extra");
|
||||
let current_sandbox = SandboxPolicy::WorkspaceWrite {
|
||||
writable_roots: vec![PathBuf::from("C:\\extra").abs()],
|
||||
writable_roots: vec![extra_root.abs()],
|
||||
read_only_access: Default::default(),
|
||||
network_access: false,
|
||||
exclude_tmpdir_env_var: false,
|
||||
|
||||
Reference in New Issue
Block a user