Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Moving the compact prompt near where it's used (#2031)

aibrahim-oai6cfee156121c
diff --git a/codex-rs/core/src/codex.rs b/codex-rs/core/src/codex.rs
index 385361e8ff..ada5b2886f 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