From 83dc8da9cccb8aadb649ccb6ee10ac01e3600e94 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Wed, 15 Apr 2026 22:09:41 +0100 Subject: [PATCH] Re-enable it (#18002) Reverts openai/codex#17981 --- codex-rs/features/src/lib.rs | 6 +++++- codex-rs/tui/src/bottom_pane/command_popup.rs | 2 +- codex-rs/tui/src/slash_command.rs | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/codex-rs/features/src/lib.rs b/codex-rs/features/src/lib.rs index 10e79f492..4d7a83b62 100644 --- a/codex-rs/features/src/lib.rs +++ b/codex-rs/features/src/lib.rs @@ -674,7 +674,11 @@ pub const FEATURES: &[FeatureSpec] = &[ FeatureSpec { id: Feature::MemoryTool, key: "memories", - stage: Stage::UnderDevelopment, + stage: Stage::Experimental { + name: "Memories", + menu_description: "Allow Codex to create new memories from conversations and bring relevant memories into new conversations.", + announcement: "NEW: Codex can now generate and uses memories. Try is now with `/memories`", + }, default_enabled: false, }, FeatureSpec { diff --git a/codex-rs/tui/src/bottom_pane/command_popup.rs b/codex-rs/tui/src/bottom_pane/command_popup.rs index 8bef8ddbc..29da003dc 100644 --- a/codex-rs/tui/src/bottom_pane/command_popup.rs +++ b/codex-rs/tui/src/bottom_pane/command_popup.rs @@ -293,7 +293,7 @@ mod tests { CommandItem::Builtin(cmd) => cmd.command(), }) .collect(); - assert_eq!(cmds, vec!["model", "mention", "mcp"]); + assert_eq!(cmds, vec!["model", "memories", "mention", "mcp"]); } #[test] diff --git a/codex-rs/tui/src/slash_command.rs b/codex-rs/tui/src/slash_command.rs index 70aed459e..759bedbad 100644 --- a/codex-rs/tui/src/slash_command.rs +++ b/codex-rs/tui/src/slash_command.rs @@ -195,7 +195,6 @@ impl SlashCommand { SlashCommand::SandboxReadRoot => cfg!(target_os = "windows"), SlashCommand::Copy => !cfg!(target_os = "android"), SlashCommand::Rollout | SlashCommand::TestApproval => cfg!(debug_assertions), - SlashCommand::Memories => false, _ => true, } }