Repository navigation
Fix condensation for 0 events by adjusting default parameters - #1523
Merged
Merged
Conversation
This is a short-term fix for issue #1518 where condensation fails when a tool loop spans almost the entire view, leaving no valid range for forgetting events. Changes: - Reduce default keep_first from 4 to 2 - Raise default max_size from 120 to 240 These adjustments make it more likely to get workable manipulation indices for condensation to act on. Co-authored-by: openhands <openhands@all-hands.dev>
Contributor
Coverage Report •
|
||||||||||||||||||||
xingyaoww
marked this pull request as ready for review
December 28, 2025 22:25
Contributor
|
Hi! I started running the integration tests on your PR. You will receive a comment with the results shortly. |
Contributor
🧪 Integration Tests ResultsOverall Success Rate: 82.0% 📁 Detailed Logs & ArtifactsClick the links below to access detailed agent/LLM logs showing the complete reasoning process for each model. On the GitHub Actions page, scroll down to the 'Artifacts' section to download the logs.
📊 Summary
📋 Detailed Resultslitellm_proxy_moonshot_kimi_k2_thinking
Skipped Tests:
litellm_proxy_vertex_ai_gemini_3_pro_preview
litellm_proxy_gpt_5.2_codex
Skipped Tests:
Failed Tests:
litellm_proxy_claude_sonnet_4_5_20250929
litellm_proxy_mistral_devstral_2512
Skipped Tests:
Failed Tests:
litellm_proxy_deepseek_deepseek_chat
Skipped Tests:
|
StressTestor
pushed a commit
to StressTestor/software-agent-sdk
that referenced
this pull request
Jun 1, 2026
…nds#1523) Co-authored-by: openhands <openhands@all-hands.dev>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is a short-term fix for issue #1518 where condensation fails when a tool loop spans almost the entire view, leaving no valid range for forgetting events.
Fixes #1518
Changes
keep_firstfrom 4 to 2max_sizefrom 120 to 240These adjustments make it more likely to get workable manipulation indices for condensation to act on.
Root Cause
When a tool loop (a sequence of ActionEvent/ObservationEvent pairs starting with thinking blocks) spans almost the entire view, the
manipulation_indicescomputed byViewleave no valid range for forgetting events. With the previous defaults (keep_first=4,max_size=120), the manipulation indices could be something like[0, 1, 2, 122], leaving no valid range for condensation.Testing
@xingyaoww can click here to continue refining the PR
Agent Server images for this PR
• GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server
Variants & Base Images
eclipse-temurin:17-jdknikolaik/python-nodejs:python3.12-nodejs22golang:1.21-bookwormPull (multi-arch manifest)
# Each variant is a multi-arch manifest supporting both amd64 and arm64 docker pull ghcr.io/openhands/agent-server:b69a3b6-pythonRun
All tags pushed for this build
About Multi-Architecture Support
b69a3b6-python) is a multi-arch manifest supporting both amd64 and arm64b69a3b6-python-amd64) are also available if needed