mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Remove Windows world-writable scans and warnings from the TUI (#44933)
## What changed Remove TUI-triggered world-writable scans at startup and during permission changes, along with their warning dialogs, acknowledgement handling, and scan telemetry. Permission selection and shortcuts no longer check for these warnings, and terminal color probing no longer waits for a startup scan. GitOrigin-RevId: a8d2fb5de7f891dcae5261286743fe3a125b82aa
This commit is contained in:
1 parent
202d61c629
commit
f3c4d082d9
13 files changed
+4
-615
No files matched your search
@@ -128,7 +128,6 @@ impl App {
|
||||
pub(super) fn ready_for_terminal_color_probe(&self, has_pending_app_events: bool) -> bool {
|
||||
!has_pending_app_events
|
||||
&& !self.chat_widget.has_active_view()
|
||||
&& !self.windows_sandbox.startup_world_writable_scan_pending
|
||||
&& !self.startup_pending_protected_request
|
||||
&& !self.has_queued_startup_protected_request()
|
||||
&& !self.chat_widget.has_pending_protected_request()
|
||||
@@ -864,39 +863,6 @@ See the Codex keymap documentation for supported actions and examples."
|
||||
}
|
||||
let initial_session_ms = initial_session_started_at.elapsed().as_millis();
|
||||
|
||||
// On startup, if a managed filesystem sandbox is active, warn about
|
||||
// world-writable dirs on Windows.
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
let startup_permission_profile = app.config.permissions.effective_permission_profile();
|
||||
let should_check = crate::windows_sandbox::level_from_config(&app.config)
|
||||
!= WindowsSandboxLevel::Disabled
|
||||
&& managed_filesystem_sandbox_is_restricted(&startup_permission_profile)
|
||||
&& !app
|
||||
.local_settings
|
||||
.notices
|
||||
.hide_world_writable_warning
|
||||
.unwrap_or(false);
|
||||
if should_check {
|
||||
app.windows_sandbox.startup_world_writable_scan_pending = true;
|
||||
let cwd = app.config.cwd.clone();
|
||||
let workspace_roots = app.config.effective_workspace_roots();
|
||||
let env_map: std::collections::HashMap<String, String> = std::env::vars().collect();
|
||||
let tx = app.app_event_tx.clone();
|
||||
let logs_base_dir = app.config.codex_home.clone();
|
||||
Self::spawn_world_writable_scan(
|
||||
cwd,
|
||||
workspace_roots,
|
||||
env_map,
|
||||
logs_base_dir,
|
||||
startup_permission_profile,
|
||||
app.session_telemetry.clone(),
|
||||
tx,
|
||||
/*startup_scan*/ true,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if let Err(err) = startup_draft.flush_pending_events(tui).await {
|
||||
return shutdown_on_startup_error(app_server, err).await;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user