It would be nice to have a *condensation/summariza...
# feedback
l
It would be nice to have a *condensation/summarization button*(with field for setting the number of events to be condensed) in OpenHands UI. Here is the expected functionality and the need in my perspective: If user activate this button, OH system should initiate condensation process. This allows the user to have more control over the long context conversations. Current condensation algorithm triggers only when the number of events reaches a predefined value(which is configurable and it's a great feature), but the number of events will stay saturated at this cap once the conversation reaches this state. One of the major flaw with this approach is the inherent assumption about the linear relationship between number of events and the effective token length from all these events. Recently I have been working on a PDF parsing and searching tool, which could add an entire book into the context of one event message. So it would be nice to see this feature.
👍 4
c
@nutritious-balloon-65098 please create an issue on OpenHands/software-agent-sdk and refer to this slack thread (https://openhands-ai.slack.com/archives/C086ARSNMGA/p1763171663679609) This should means we can set an "unlimited" event limit for LLMSummarizingCondenser and only run condensation when: 1. LLM context window is hit (the system will send back CondensationRequest) 2. OR the user sends a
CondensationRequest
to the system a. To achieve this, we should add
.condense
method to
BaseConversation
class - this should just be adding a
CondensationRequest
to the
state.events
n
I'm on it! Xingyao Wang can track my progress here.
Summary I've successfully created a comprehensive GitHub issue for the OpenHands/software-agent-sdk repository based on the Slack thread discussion about improving condensation control. What Was Done ✅ Created Issue #1172: Add manual condensation control and decouple condensation from event count Issue Contents The issue includes: 1. Problem Statement: ◦ Current
LLMSummarizingCondenser
assumes linear relationship between event count and token length ◦ Breaks down with variable-length events (e.g., PDF parsing adding entire books in one event) ◦ Events stay saturated at
max_size
cap, limiting user control 2. Proposed Solution: ◦ Decouple condensation from event count: Set unlimited/high event limit, trigger only on: ▪︎ LLM context window exceeded (automatic
CondensationRequest
) ▪︎ User manual request (new
.condense()
method) ◦ Add
.condense()
method to
BaseConversation
class
: Simple method that adds
CondensationRequest()
to
state.events
3. Implementation Tasks: ◦ Add abstract method to
BaseConversation
◦ Implement in
LocalConversation
and
RemoteConversation
◦ Add tests for manual condensation ◦ Update documentation and examples ◦ Consider UI integration (future enhancement) 4. Benefits: ◦ Better token management based on actual context usage ◦ User control for manual triggering ◦ More flexible conversation handling with variable-length events ◦ Backward compatible 5. Related Files: Listed all relevant files for implementation 6. Open Questions: Raised design questions about defaults, optional parameters, and sync vs async behavior The issue has been properly labeled with
enhancement
,
conversation
, and
context-management
tags and is now ready for team review and implementation. <sub>View full conversation</sub>
c
cc @elegant-branch-54423 so you are aware of this feature request