⚡ Reduce dialogue memory injection from 8000 to 2000 chars for faster startup

This commit is contained in:
2026-06-11 22:45:37 +05:30
parent a0dc5bdad6
commit 5eb86e066b

View File

@@ -208,7 +208,7 @@ impl AgentLoop {
// Inject recent dialogue from verbatim memory // Inject recent dialogue from verbatim memory
{ {
let memory = self.memory.lock().await; let memory = self.memory.lock().await;
if let Ok(dialogue) = memory.dialogue_read(8000).await { if let Ok(dialogue) = memory.dialogue_read(2000).await {
if !dialogue.is_empty() { if !dialogue.is_empty() {
system_prompt = format!( system_prompt = format!(
"{}\n\n## Past Conversations (Verbatim Memory)\n{}\n---\nContinue the conversation naturally.", "{}\n\n## Past Conversations (Verbatim Memory)\n{}\n---\nContinue the conversation naturally.",