mirror of
https://github.com/openai/codex.git
synced 2026-11-13 06:45:07 +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:
1 parent
a6e63f9f32
commit
94967e03e5
72 files changed
+1323
-273
No files matched your search
@@ -363,6 +363,7 @@ use codex_protocol::protocol::WarningEvent;
|
||||
use codex_protocol::turn_input::TurnInputMode;
|
||||
use codex_protocol::turn_input::TurnInputRequest;
|
||||
use codex_protocol::turn_input::TurnInputSubmission;
|
||||
use codex_protocol::turn_input::TurnStartOptions;
|
||||
use codex_protocol::user_input::UserInput;
|
||||
use codex_skills_extension::HostSkillsService;
|
||||
use codex_tools::ToolName;
|
||||
@@ -887,6 +888,7 @@ impl SessionIo {
|
||||
pub(crate) async fn submit_recover_turn(
|
||||
&self,
|
||||
thread_settings: ThreadSettingsOverrides,
|
||||
start_options: TurnStartOptions,
|
||||
trace: Option<W3cTraceContext>,
|
||||
turn_id: String,
|
||||
) -> CodexResult<TurnInputSubmission> {
|
||||
@@ -895,6 +897,7 @@ impl SessionIo {
|
||||
id: turn_id,
|
||||
op: Op::RecoverTurn {
|
||||
thread_settings,
|
||||
start_options,
|
||||
reply: reply_tx,
|
||||
},
|
||||
trace,
|
||||
@@ -2151,8 +2154,7 @@ impl Session {
|
||||
parent_thread_id,
|
||||
communication,
|
||||
context,
|
||||
/*parent_turn_id*/ None,
|
||||
/*root_turn_id*/ None,
|
||||
TurnStartOptions::default(),
|
||||
)
|
||||
.await
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user