have world_writable_warning_details accept cwd as a param (#6913)

this enables app-server to pass in the correct workspace cwd for the
current conversation
This commit is contained in:
iceweasel-oai
2025-11-19 10:10:03 -08:00
committed by GitHub
parent 91a1d20e2d
commit b3d320433f
4 changed files with 49 additions and 39 deletions

View File

@@ -2300,7 +2300,11 @@ impl ChatWidget {
{
return None;
}
codex_windows_sandbox::world_writable_warning_details(self.config.codex_home.as_path())
let cwd = match std::env::current_dir() {
Ok(cwd) => cwd,
Err(_) => return Some((Vec::new(), 0, true)),
};
codex_windows_sandbox::world_writable_warning_details(self.config.codex_home.as_path(), cwd)
}
#[cfg(not(target_os = "windows"))]