Merge pull request #118 from deanbear/fix-auto-compact-400

fix: remove hardcoded assistant ack after auto_compact to fix 400
This commit is contained in:
CrazyBoyM
2026-03-29 23:52:02 +08:00
15 changed files with 2 additions and 32 deletions

View File

@@ -117,7 +117,6 @@ def auto_compact(messages: list) -> list:
# Replace all messages with compressed summary
return [
{"role": "user", "content": f"[Conversation compressed. Transcript: {transcript_path}]\n\n{summary}"},
{"role": "assistant", "content": "Understood. I have the context from the summary. Continuing."},
]
@@ -228,6 +227,7 @@ def agent_loop(messages: list):
if manual_compact:
print("[manual compact]")
messages[:] = auto_compact(messages)
return
if __name__ == "__main__":