Skip to content

Commit 6cfee15

Browse files
authored
Moving the compact prompt near where it's used (openai#2031)
- Moved the prompt for compact to core - Renamed it to be more clear
1 parent 216e9e2 commit 6cfee15

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

codex-rs/core/src/codex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ async fn submission_loop(
10181018
};
10191019

10201020
// Create a summarization request as user input
1021-
const SUMMARIZATION_PROMPT: &str = include_str!("../../../SUMMARY.md");
1021+
const SUMMARIZATION_PROMPT: &str = include_str!("prompt_for_compact_command.md");
10221022

10231023
// Attempt to inject input into current task
10241024
if let Err(items) = sess.inject_input(vec![InputItem::Text {

SUMMARY.md renamed to codex-rs/core/src/prompt_for_compact_command.md

File renamed without changes.

0 commit comments

Comments
 (0)