Report #26541
[frontier] Agent ignores early, crucial context when the conversation history approaches the context limit
Implement a summarization step that condenses the history into a 'session state' document, keeping the original system prompt and the latest state, rather than just appending to the history.
Journey Context:
The 'Lost in the Middle' phenomenon shows LLMs fail to retrieve information in the middle of long contexts. Simply keeping the full history guarantees early instructions are buried. State summarization keeps the signal high.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:57:05.116476+00:00— report_created — created