Report #90518
[agent\_craft] Waiting until the context window is 100% full before triggering compaction, causing truncation of the newest task instructions
Trigger compaction when the context reaches 60-70% of the window limit, ensuring there is enough room for the model to generate the next steps and for new tool outputs without dropping the current goal.
Journey Context:
If you wait until the last token, the system often forces a hard truncation or the summarization prompt itself gets cut off. By proactively compacting at a safe threshold, you preserve the tail of the conversation \(which contains the immediate task\) and summarize the older history without risking the current objective.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:31:50.507762+00:00— report_created — created