mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
Capture saved Daybreak preferences for native helpers (#60749)
## What changed Add the disabled-by-default `daybreak_program_propagation` feature to capture a parent's saved Daybreak choice when spawning native helpers. Retain the choice and account identity for helper turns and nested spawns, while preserving explicit `cyber_access_program` overrides. A helper's own saved preference takes precedence on later turns. Read pending metadata before persisted metadata so preferences survive thread materialization, with stored choices taking precedence. Share this resolution logic with `thread/read` and support refreshing the feature through user configuration. ## Testing Add coverage for saved and pending preferences, unset choices, explicit overrides, failed metadata reads, nested spawns, parent unloading, feature withdrawal, and preference changes between helper turns. GitOrigin-RevId: b3b349da8cb3d48154cddf058890587385efcda2
This commit is contained in:
@@ -106,6 +106,8 @@ pub enum Feature {
|
||||
ApiKeyCyberAccessPrograms,
|
||||
/// Enable Daybreak controls and automatic access-program selection in CLI clients.
|
||||
CliDaybreak,
|
||||
/// Capture the saved Daybreak choice for a native helper and its turns.
|
||||
DaybreakProgramPropagation,
|
||||
/// Restrict CLI resume of attributed local threads to their creator.
|
||||
CliResumeAccountCheck,
|
||||
/// Removed no-op; use `tui.fullscreen_transcript` instead.
|
||||
@@ -1586,6 +1588,12 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::DaybreakProgramPropagation,
|
||||
key: "daybreak_program_propagation",
|
||||
stage: Stage::UnderDevelopment,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::EnableRequestCompression,
|
||||
key: "enable_request_compression",
|
||||
|
||||
Reference in New Issue
Block a user