mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
feat: chronicle alias (#18651)
Rename Telepathy to Chronicle and add an alias for backward compatibility
This commit is contained in:
1 parent
fc758af9eb
commit
1c24347772
4 files changed
+22
-4
No files matched your search
@@ -344,6 +344,9 @@
|
|||||||
"child_agents_md": {
|
"child_agents_md": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
"chronicle": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"code_mode": {
|
"code_mode": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
@@ -2319,6 +2322,9 @@
|
|||||||
"child_agents_md": {
|
"child_agents_md": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
"chronicle": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"code_mode": {
|
"code_mode": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -45,6 +45,10 @@ const ALIASES: &[Alias] = &[
|
|||||||
legacy_key: "memory_tool",
|
legacy_key: "memory_tool",
|
||||||
feature: Feature::MemoryTool,
|
feature: Feature::MemoryTool,
|
||||||
},
|
},
|
||||||
|
Alias {
|
||||||
|
legacy_key: "telepathy",
|
||||||
|
feature: Feature::Chronicle,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
pub fn legacy_feature_keys() -> impl Iterator<Item = &'static str> {
|
pub fn legacy_feature_keys() -> impl Iterator<Item = &'static str> {
|
||||||
|
|||||||
@@ -132,8 +132,8 @@ pub enum Feature {
|
|||||||
Sqlite,
|
Sqlite,
|
||||||
/// Enable startup memory extraction and file-backed memory consolidation.
|
/// Enable startup memory extraction and file-backed memory consolidation.
|
||||||
MemoryTool,
|
MemoryTool,
|
||||||
/// Enable the Telepathy sidecar for passive screen-context memories.
|
/// Enable the Chronicle sidecar for passive screen-context memories.
|
||||||
Telepathy,
|
Chronicle,
|
||||||
/// Append additional AGENTS.md guidance to user instructions.
|
/// Append additional AGENTS.md guidance to user instructions.
|
||||||
ChildAgentsMd,
|
ChildAgentsMd,
|
||||||
/// Compress request bodies (zstd) when sending streaming requests to codex-backend.
|
/// Compress request bodies (zstd) when sending streaming requests to codex-backend.
|
||||||
@@ -711,8 +711,8 @@ pub const FEATURES: &[FeatureSpec] = &[
|
|||||||
default_enabled: false,
|
default_enabled: false,
|
||||||
},
|
},
|
||||||
FeatureSpec {
|
FeatureSpec {
|
||||||
id: Feature::Telepathy,
|
id: Feature::Chronicle,
|
||||||
key: "telepathy",
|
key: "chronicle",
|
||||||
stage: Stage::UnderDevelopment,
|
stage: Stage::UnderDevelopment,
|
||||||
default_enabled: false,
|
default_enabled: false,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -241,6 +241,14 @@ fn workspace_dependencies_is_stable_and_enabled_by_default() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn telepathy_is_legacy_alias_for_chronicle() {
|
||||||
|
assert_eq!(Feature::Chronicle.stage(), Stage::UnderDevelopment);
|
||||||
|
assert_eq!(Feature::Chronicle.default_enabled(), false);
|
||||||
|
assert_eq!(feature_for_key("chronicle"), Some(Feature::Chronicle));
|
||||||
|
assert_eq!(feature_for_key("telepathy"), Some(Feature::Chronicle));
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn collab_is_legacy_alias_for_multi_agent() {
|
fn collab_is_legacy_alias_for_multi_agent() {
|
||||||
assert_eq!(feature_for_key("multi_agent"), Some(Feature::Collab));
|
assert_eq!(feature_for_key("multi_agent"), Some(Feature::Collab));
|
||||||
|
|||||||
Reference in new issue
Block a user