mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
chore(features) codex dependencies feat (#17960)
## Summary Setting this up ## Testing - [x] Unit tests pass
This commit is contained in:
committed by
GitHub
Unverified
parent
a3d475d33f
commit
652380d362
@@ -523,6 +523,9 @@
|
||||
},
|
||||
"web_search_request": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"workspace_dependencies": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -2380,6 +2383,9 @@
|
||||
},
|
||||
"web_search_request": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"workspace_dependencies": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
||||
@@ -191,6 +191,8 @@ pub enum Feature {
|
||||
ResponsesWebsocketsV2,
|
||||
/// Use the agent identity registration flow for ChatGPT-authenticated sessions.
|
||||
UseAgentIdentity,
|
||||
/// Enable workspace dependency support.
|
||||
WorkspaceDependencies,
|
||||
}
|
||||
|
||||
impl Feature {
|
||||
@@ -929,6 +931,12 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
stage: Stage::UnderDevelopment,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::WorkspaceDependencies,
|
||||
key: "workspace_dependencies",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
},
|
||||
];
|
||||
|
||||
pub fn unstable_features_warning_event(
|
||||
|
||||
@@ -183,6 +183,16 @@ fn use_agent_identity_is_under_development() {
|
||||
assert_eq!(Feature::UseAgentIdentity.default_enabled(), false);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn workspace_dependencies_is_stable_and_enabled_by_default() {
|
||||
assert_eq!(Feature::WorkspaceDependencies.stage(), Stage::Stable);
|
||||
assert_eq!(Feature::WorkspaceDependencies.default_enabled(), true);
|
||||
assert_eq!(
|
||||
feature_for_key("workspace_dependencies"),
|
||||
Some(Feature::WorkspaceDependencies)
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn collab_is_legacy_alias_for_multi_agent() {
|
||||
assert_eq!(feature_for_key("multi_agent"), Some(Feature::Collab));
|
||||
|
||||
Reference in New Issue
Block a user