mirror of
https://github.com/openai/codex.git
synced 2026-11-07 20:30:33 +00:00
## What changed - Add `in_app_browser.allow_external_browser_settings_import` to managed requirements, preserving explicit Boolean values through layered composition while leaving an omitted value unset. - Return the policy as `inAppBrowser.allowExternalBrowserSettingsImport` from `configRequirements/read` and include it in the generated protocol schemas. - Keep the import policy independent from the in-app browser feature flag and agent Browser Use requirements. ## Testing - Cover parsing, managed-layer precedence, invalid values, user and session override resistance, and app-server response serialization. GitOrigin-RevId: efa2621d2b1cf503f1bee2505d9914cb4fb7221d
15 lines
588 B
Rust
15 lines
588 B
Rust
use serde::Deserialize;
|
|
|
|
/// Managed requirements for the interactive in-app browser, not agent Browser Use.
|
|
#[derive(Deserialize, Debug, Clone, Default, PartialEq, Eq)]
|
|
pub struct InAppBrowserRequirementsToml {
|
|
/// Whether external browser settings may be imported. Only `Some(false)`
|
|
/// denies import; omission is effectively `true`. Keep omission unset while
|
|
/// composing managed layers so it cannot replace an explicit requirement.
|
|
pub allow_external_browser_settings_import: Option<bool>,
|
|
}
|
|
|
|
#[cfg(test)]
|
|
#[path = "in_app_browser_requirements_tests.rs"]
|
|
mod tests;
|