feat: compaction prompt configurable (#5959)

```
 codex -c compact_prompt="Summarize in bullet points"
 ```
This commit is contained in:
jif-oai
2025-10-30 14:24:24 +00:00
committed by GitHub
parent 5fcc380bd9
commit f4f9695978
11 changed files with 198 additions and 22 deletions

View File

@@ -321,6 +321,10 @@ pub struct NewConversationParams {
#[serde(skip_serializing_if = "Option::is_none")]
pub base_instructions: Option<String>,
/// Prompt used during conversation compaction.
#[serde(skip_serializing_if = "Option::is_none")]
pub compact_prompt: Option<String>,
/// Whether to include the apply patch tool in the conversation.
#[serde(skip_serializing_if = "Option::is_none")]
pub include_apply_patch_tool: Option<bool>,
@@ -1125,6 +1129,7 @@ mod tests {
sandbox: None,
config: None,
base_instructions: None,
compact_prompt: None,
include_apply_patch_tool: None,
},
};