Skip to content

The agent that grows with you

fix(compression): drop duplicated snapshot sentence from task prompt

kshitijk4poorad4e4496c268
diff --git a/agent/context_compressor.py b/agent/context_compressor.py
index fef4269ec14..b7c62fcb16c 100644
--- a/agent/context_compressor.py
+++ b/agent/context_compressor.py
@@ -2019,7 +2019,7 @@ This historical snapshot must identify the latest unresolved user input precisel
If the user's most recent message was a reverse signal (stop, undo, roll
back, never mind, just verify, change of topic) that supersedes earlier
work, describe the reverse signal accurately and DO NOT carry forward the
-cancelled task. The compressor inserts the source-grounded snapshot afterward.
+cancelled task.
Example: "User asked to stop the prior task — earlier work is cancelled."
If no outstanding task exists, write "None."]""",
"goal": "[What the user is trying to accomplish overall]",