mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
Add a requirements feature gate for the browser annotation API (#49784)
## What changed Register `browser_annotation_api` as a stable, default-enabled feature intended for requirements rather than user configuration. It controls websites opening and customizing annotation tools in desktop apps, independently of ordinary user-driven annotation. Add the key to the configuration schema, extending the browser requirements support introduced in https://github.com/openai/codex/pull/18956. ## Testing Extend `browser_feature_requirements_are_valid` to verify that enterprise requirements setting `browser_annotation_api = false` disable the feature. GitOrigin-RevId: 8c7bb65932e08560040958b4472fe45f6d1c916f
This commit is contained in:
@@ -11657,6 +11657,7 @@ async fn browser_feature_requirements_are_valid() -> std::io::Result<()> {
|
||||
r#"
|
||||
[features]
|
||||
in_app_browser = false
|
||||
browser_annotation_api = false
|
||||
browser_use = false
|
||||
browser_use_full_cdp_access = false
|
||||
"#,
|
||||
@@ -11666,6 +11667,7 @@ browser_use_full_cdp_access = false
|
||||
.await?;
|
||||
|
||||
assert!(!config.features.enabled(Feature::InAppBrowser));
|
||||
assert!(!config.features.enabled(Feature::BrowserAnnotationApi));
|
||||
assert!(!config.features.enabled(Feature::BrowserUse));
|
||||
assert!(!config.features.enabled(Feature::BrowserUseFullCdpAccess));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user