mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Preserve saved permissions when resuming or forking remote tasks (#43330)
## Why Local permission settings could overwrite a remote task's saved server settings when resuming or forking, including its named permission profile. ## What changed - Omit permission overrides from remote resume requests and remote fork requests that inherit saved settings. - Reject explicit permission overrides when resuming or forking remote tasks, including overrides from session flags and selected configuration profiles. - Refresh restored runtime permission and approval overrides after a remote resume so settings from the previous task do not persist. - Carry the selected fork permission mode through retries after unarchiving. ## Testing Add regression coverage for restoring saved server permission profiles, approval policies, and approval reviewers across resume and fork; rejecting explicit remote resume overrides; and clearing stale restored runtime overrides. GitOrigin-RevId: 465c0444df380553e50ddbeeceff9dc64e5bf9c1
This commit is contained in:
1 parent
112be0bd74
commit
1fb5158b34
11 files changed
+473
-19
No files matched your search
@@ -398,6 +398,9 @@ impl App {
|
||||
}
|
||||
}
|
||||
};
|
||||
if unloaded && self.reject_remote_resume_permission_override(&resume_config) {
|
||||
return Ok(AppRunControl::Continue);
|
||||
}
|
||||
let baseline_approval = resume_config.permissions.approval_policy.value();
|
||||
let baseline_permissions =
|
||||
RuntimePermissionProfileOverride::from_config(&resume_config);
|
||||
|
||||
Reference in new issue
Block a user