Register full CDP requirements feature (#28769)

register cdp requirements feature flag
This commit is contained in:
Samuel Yuan
2026-06-22 17:08:15 -05:00
committed by GitHub
Unverified
parent 5f129a4703
commit ff37f4a6ef
3 changed files with 18 additions and 0 deletions
+6
View File
@@ -449,6 +449,9 @@
"browser_use_external": {
"type": "boolean"
},
"browser_use_full_cdp_access": {
"type": "boolean"
},
"chronicle": {
"type": "boolean"
},
@@ -4750,6 +4753,9 @@
"browser_use_external": {
"type": "boolean"
},
"browser_use_full_cdp_access": {
"type": "boolean"
},
"chronicle": {
"type": "boolean"
},
+2
View File
@@ -9752,6 +9752,7 @@ async fn browser_feature_requirements_are_valid() -> std::io::Result<()> {
[features]
in_app_browser = false
browser_use = false
browser_use_full_cdp_access = false
"#,
),
)
@@ -9760,6 +9761,7 @@ browser_use = false
assert!(!config.features.enabled(Feature::InAppBrowser));
assert!(!config.features.enabled(Feature::BrowserUse));
assert!(!config.features.enabled(Feature::BrowserUseFullCdpAccess));
Ok(())
}
+10
View File
@@ -175,6 +175,10 @@ pub enum Feature {
///
/// Requirements-only gate: this should be set from requirements, not user config.
BrowserUse,
/// Allow Browser Use integration to access the full Chrome DevTools Protocol surface.
///
/// Requirements-only gate: this should be set from requirements, not user config.
BrowserUseFullCdpAccess,
/// Allow Browser Use integration with external browsers.
///
/// Requirements-only gate: this should be set from requirements, not user config.
@@ -1115,6 +1119,12 @@ pub const FEATURES: &[FeatureSpec] = &[
stage: Stage::Stable,
default_enabled: true,
},
FeatureSpec {
id: Feature::BrowserUseFullCdpAccess,
key: "browser_use_full_cdp_access",
stage: Stage::Stable,
default_enabled: true,
},
FeatureSpec {
id: Feature::BrowserUseExternal,
key: "browser_use_external",