mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Persist active permission profiles in turn context (#39145)
## What changed - Add the optional `active_permission_profile` field to `TurnContextItem` to record the built-in or named profile that produced the effective permission profile. - Populate the field when serializing a turn context while preserving compatibility with records where it is absent. ## Testing - Add coverage verifying that turn-context serialization stores the active permission profile. GitOrigin-RevId: d69142ab1b26595ab406235f89818ef41370e963
This commit is contained in:
1 parent
de7bbb0481
commit
230791fd1f
14 files changed
+48
No files matched your search
@@ -478,6 +478,7 @@ impl TurnContext {
|
||||
approvals_reviewer: Some(self.config.approvals_reviewer),
|
||||
sandbox_policy: self.sandbox_policy(),
|
||||
permission_profile: Some(self.permission_profile()),
|
||||
active_permission_profile: self.config.permissions.active_permission_profile(),
|
||||
network: self.turn_context_network_item(),
|
||||
file_system_sandbox_policy: self.non_legacy_file_system_sandbox_policy(),
|
||||
model: self.model_info.slug.clone(),
|
||||
|
||||
Reference in new issue
Block a user