From 6cfee156121cc08e211e1f5f6e68a6f68bb92bb8 Mon Sep 17 00:00:00 2001 From: aibrahim-oai Date: Fri, 8 Aug 2025 12:43:43 -0700 Subject: [PATCH] Moving the compact prompt near where it's used (#2031) - Moved the prompt for compact to core - Renamed it to be more clear --- codex-rs/core/src/codex.rs | 2 +- SUMMARY.md => codex-rs/core/src/prompt_for_compact_command.md | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename SUMMARY.md => codex-rs/core/src/prompt_for_compact_command.md (100%) diff --git a/codex-rs/core/src/codex.rs b/codex-rs/core/src/codex.rs index 385361e8..ada5b288 100644 --- a/codex-rs/core/src/codex.rs +++ b/codex-rs/core/src/codex.rs @@ -1018,7 +1018,7 @@ async fn submission_loop( }; // Create a summarization request as user input - const SUMMARIZATION_PROMPT: &str = include_str!("../../../SUMMARY.md"); + const SUMMARIZATION_PROMPT: &str = include_str!("prompt_for_compact_command.md"); // Attempt to inject input into current task if let Err(items) = sess.inject_input(vec![InputItem::Text { diff --git a/SUMMARY.md b/codex-rs/core/src/prompt_for_compact_command.md similarity index 100% rename from SUMMARY.md rename to codex-rs/core/src/prompt_for_compact_command.md