mirror of
https://github.com/openai/codex.git
synced 2026-10-23 18:08:45 +00:00
rollout-trace: record permission profiles
This commit is contained in:
@@ -58,7 +58,7 @@ pub struct ThreadStartedTraceMetadata {
|
||||
pub model: String,
|
||||
pub provider_name: String,
|
||||
pub approval_policy: String,
|
||||
pub sandbox_policy: String,
|
||||
pub permission_profile: String,
|
||||
}
|
||||
|
||||
/// Trace-only payload for a child completion notification delivered to its parent.
|
||||
|
||||
@@ -37,7 +37,7 @@ fn create_in_root_writes_replayable_lifecycle_events() -> anyhow::Result<()> {
|
||||
model: "gpt-test".to_string(),
|
||||
provider_name: "test-provider".to_string(),
|
||||
approval_policy: "never".to_string(),
|
||||
sandbox_policy: "DangerFullAccess".to_string(),
|
||||
permission_profile: "Disabled".to_string(),
|
||||
},
|
||||
)?;
|
||||
|
||||
@@ -84,7 +84,7 @@ fn spawned_thread_start_appends_to_root_bundle() -> anyhow::Result<()> {
|
||||
model: "gpt-test".to_string(),
|
||||
provider_name: "test-provider".to_string(),
|
||||
approval_policy: "never".to_string(),
|
||||
sandbox_policy: "DangerFullAccess".to_string(),
|
||||
permission_profile: "Disabled".to_string(),
|
||||
});
|
||||
child_trace.record_ended(RolloutStatus::Completed);
|
||||
let bundle_dir = single_bundle_dir(temp.path())?;
|
||||
@@ -201,7 +201,7 @@ fn minimal_metadata(thread_id: ThreadId) -> ThreadStartedTraceMetadata {
|
||||
model: "gpt-test".to_string(),
|
||||
provider_name: "test-provider".to_string(),
|
||||
approval_policy: "never".to_string(),
|
||||
sandbox_policy: "danger-full-access".to_string(),
|
||||
permission_profile: "Disabled".to_string(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user