mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Always confirm before enabling full access (#32989)
## Why Full access significantly increases the risk of data loss, leaks, or unexpected behavior, so users should explicitly confirm each time they select it. ## What changed - Always open the full access confirmation when user-reviewed approvals are active, regardless of `notices.hide_full_access_warning`. - Remove the persistent "don't ask again" option and its acknowledgement events. ## Testing - Update the TUI permission tests and confirmation popup snapshot to cover repeated confirmation. GitOrigin-RevId: 0ee827332441e13d9445349ed6a5a92dc8fef4b2
This commit is contained in:
1 parent
1c9f890c05
commit
d7ba5ff955
6 files changed
+23
-84
No files matched your search
@@ -1832,9 +1832,6 @@ impl App {
|
||||
AppEvent::SkipNextWorldWritableScan => {
|
||||
self.windows_sandbox.skip_world_writable_scan_once = true;
|
||||
}
|
||||
AppEvent::UpdateFullAccessWarningAcknowledged(ack) => {
|
||||
self.chat_widget.set_full_access_warning_acknowledged(ack);
|
||||
}
|
||||
AppEvent::UpdateWorldWritableWarningAcknowledged(ack) => {
|
||||
self.chat_widget
|
||||
.set_world_writable_warning_acknowledged(ack);
|
||||
@@ -1847,21 +1844,6 @@ impl App {
|
||||
self.sync_active_thread_plan_mode_reasoning_setting(app_server)
|
||||
.await;
|
||||
}
|
||||
AppEvent::PersistFullAccessWarningAcknowledged => {
|
||||
if let Err(err) = ConfigEditsBuilder::for_config(&self.config)
|
||||
.set_hide_full_access_warning(/*acknowledged*/ true)
|
||||
.apply()
|
||||
.await
|
||||
{
|
||||
tracing::error!(
|
||||
error = %err,
|
||||
"failed to persist full access warning acknowledgement"
|
||||
);
|
||||
self.chat_widget.add_error_message(format!(
|
||||
"Failed to save full access confirmation preference: {err}"
|
||||
));
|
||||
}
|
||||
}
|
||||
AppEvent::PersistWorldWritableWarningAcknowledged => {
|
||||
if let Err(err) = ConfigEditsBuilder::for_config(&self.config)
|
||||
.set_hide_world_writable_warning(/*acknowledged*/ true)
|
||||
|
||||
Reference in new issue
Block a user