mirror of
https://github.com/openai/codex.git
synced 2026-10-31 19:28:49 +00:00
Add per-turn cyber access program selection (#40687)
## What changed - Add the experimental `turn/start.cyberAccessProgram` option with `standard`, `daybreakBlue`, and `daybreakRed` values. - Forward the selection as `access_programs.cyber` on Responses, WebSocket, and remote-compaction requests made with ChatGPT authentication, while omitting it for API-key and custom-provider requests. - Preserve the per-turn selection across recovery, compaction, and child-agent turns without making it a persistent thread setting. ## Testing - Cover app-server forwarding, authentication boundaries, WebSocket reuse, turn recovery, compaction, and child-agent inheritance. GitOrigin-RevId: d2eb468f365b2214c5099bc21741cf30f8bd2eb5
This commit is contained in:
@@ -955,6 +955,9 @@ mod tests {
|
||||
service_tier: Some("priority".to_string()),
|
||||
prompt_cache_key: Some("cache-key".to_string()),
|
||||
text: None,
|
||||
access_programs: Some(
|
||||
codex_protocol::turn_input::CyberAccessProgram::DaybreakBlue.into(),
|
||||
),
|
||||
client_metadata: Some(HashMap::from([(
|
||||
"traceparent".to_string(),
|
||||
"00-0123456789abcdef0123456789abcdef-0123456789abcdef-01".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user