mirror of
https://github.com/openai/codex.git
synced 2026-04-30 17:36:40 +00:00
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:
@@ -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"))]
|
||||
|
||||
Reference in New Issue
Block a user