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

@@ -191,8 +191,15 @@ impl MessageProcessor {
}
// This function is stubbed out to return None on non-Windows platforms
let cwd = match std::env::current_dir() {
Ok(cwd) => cwd,
Err(_) => return,
};
if let Some((sample_paths, extra_count, failed_scan)) =
codex_windows_sandbox::world_writable_warning_details(self.config.codex_home.as_path())
codex_windows_sandbox::world_writable_warning_details(
self.config.codex_home.as_path(),
cwd,
)
{
self.outgoing
.send_server_notification(ServerNotification::WindowsWorldWritableWarning(