ancient-musician-18459
01/02/2026, 8:18 PMopenhands-sdk and am running into infinite loop of condensation as follows:
[01/02/26 15:17:16] WARNING LLM raised context window exceeded error, triggering condensation agent.py:200
Condensation Request ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Conversation Condensation Requested
A condensation of the conversation history has been requested to manage context window usage.
Has anyone run into this issue and resolved it before? For context, I'm using the LLMSummarizingCondenser
condenser = LLMSummarizingCondenser(
llm=llm.model_copy(update={"usage_id": "condenser"}), max_size=200000, keep_first=2
)limited-student-10747
01/02/2026, 8:22 PMwide-doctor-37830
01/02/2026, 8:28 PMmax_size references the number of events before condensation, not the number of tokens. 200k is huge -- I'd recommend setting that value to closer to 200.ancient-musician-18459
01/02/2026, 8:57 PM