Skip to content

Commit e415369

Browse files
authored
chore: rename collab feature flag key to multi_agent (#11918)
Summary - rename the collab feature key to multi_agent while keeping the Feature enum unchanged - add legacy alias support so both "multi_agent" and "collab" map to the same feature - cover the alias behavior with a new unit test
1 parent b309567 commit e415369

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

codex-rs/core/config.schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@
233233
"memory_tool": {
234234
"type": "boolean"
235235
},
236+
"multi_agent": {
237+
"type": "boolean"
238+
},
236239
"personality": {
237240
"type": "boolean"
238241
},
@@ -1363,6 +1366,9 @@
13631366
"memory_tool": {
13641367
"type": "boolean"
13651368
},
1369+
"multi_agent": {
1370+
"type": "boolean"
1371+
},
13661372
"personality": {
13671373
"type": "boolean"
13681374
},

codex-rs/core/src/features.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ pub const FEATURES: &[FeatureSpec] = &[
552552
},
553553
FeatureSpec {
554554
id: Feature::Collab,
555-
key: "collab",
555+
key: "multi_agent",
556556
stage: Stage::Experimental {
557557
name: "Sub-agents",
558558
menu_description: "Ask Codex to spawn multiple agents to parallelize the work and win in efficiency.",
@@ -738,4 +738,10 @@ mod tests {
738738
);
739739
assert_eq!(Feature::UseLinuxSandboxBwrap.default_enabled(), false);
740740
}
741+
742+
#[test]
743+
fn collab_is_legacy_alias_for_multi_agent() {
744+
assert_eq!(feature_for_key("multi_agent"), Some(Feature::Collab));
745+
assert_eq!(feature_for_key("collab"), Some(Feature::Collab));
746+
}
741747
}

codex-rs/core/src/features/legacy.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ const ALIASES: &[Alias] = &[
3333
legacy_key: "web_search",
3434
feature: Feature::WebSearchRequest,
3535
},
36+
Alias {
37+
legacy_key: "collab",
38+
feature: Feature::Collab,
39+
},
3640
];
3741

3842
pub(crate) fn legacy_feature_keys() -> impl Iterator<Item = &'static str> {

0 commit comments

Comments
 (0)