Skip to content

Conversation

@csmith49
Copy link
Collaborator

@csmith49 csmith49 commented Jan 5, 2026

Summary

Extends the rolling condenser API to support hard context resets, and adds one such strategy for the LLM summarizing condenser. This strategy triggers when a hard condensation request comes through but one can't be found.

The quality of the summary and the agent's behavior afterwards is not likely to be good. This is intended solely as a last-ditch fallback option.

Checklist

  • If the PR is changing/adding functionality, are there tests to reflect this?
  • If there is an example, have you run the example to make sure that it works?
  • If there are instructions on how to run the code, have you followed the instructions and made sure that it works?
  • If the feature is significant enough to require documentation, is there a PR open on the OpenHands/docs repository with the same branch name?
  • Is the github CI passing?

Agent Server images for this PR

GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server

Variants & Base Images

Variant Architectures Base Image Docs / Tags
java amd64, arm64 eclipse-temurin:17-jdk Link
python amd64, arm64 nikolaik/python-nodejs:python3.12-nodejs22 Link
golang amd64, arm64 golang:1.21-bookworm Link

Pull (multi-arch manifest)

# Each variant is a multi-arch manifest supporting both amd64 and arm64
docker pull ghcr.io/openhands/agent-server:b4ee075-python

Run

docker run -it --rm \
  -p 8000:8000 \
  --name agent-server-b4ee075-python \
  ghcr.io/openhands/agent-server:b4ee075-python

All tags pushed for this build

ghcr.io/openhands/agent-server:b4ee075-golang-amd64
ghcr.io/openhands/agent-server:b4ee075-golang_tag_1.21-bookworm-amd64
ghcr.io/openhands/agent-server:b4ee075-golang-arm64
ghcr.io/openhands/agent-server:b4ee075-golang_tag_1.21-bookworm-arm64
ghcr.io/openhands/agent-server:b4ee075-java-amd64
ghcr.io/openhands/agent-server:b4ee075-eclipse-temurin_tag_17-jdk-amd64
ghcr.io/openhands/agent-server:b4ee075-java-arm64
ghcr.io/openhands/agent-server:b4ee075-eclipse-temurin_tag_17-jdk-arm64
ghcr.io/openhands/agent-server:b4ee075-python-amd64
ghcr.io/openhands/agent-server:b4ee075-nikolaik_s_python-nodejs_tag_python3.12-nodejs22-amd64
ghcr.io/openhands/agent-server:b4ee075-python-arm64
ghcr.io/openhands/agent-server:b4ee075-nikolaik_s_python-nodejs_tag_python3.12-nodejs22-arm64
ghcr.io/openhands/agent-server:b4ee075-golang
ghcr.io/openhands/agent-server:b4ee075-java
ghcr.io/openhands/agent-server:b4ee075-python

About Multi-Architecture Support

  • Each variant tag (e.g., b4ee075-python) is a multi-arch manifest supporting both amd64 and arm64
  • Docker automatically pulls the correct architecture for your platform
  • Individual architecture tags (e.g., b4ee075-python-amd64) are also available if needed

@openhands-ai
Copy link

openhands-ai bot commented Jan 5, 2026

Looks like there are a few issues preventing this PR from being merged!

  • GitHub Actions are failing:
    • Run tests

If you'd like me to help, just leave a comment, like

@OpenHands please fix the failing actions on PR #1596 at branch `feat/hard-context-reset`

Feel free to include any additional details that might help me get this PR into a better state.

You can manage your notification settings

@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

Coverage

Coverage Report •
FileStmtsMissCoverMissing
openhands-sdk/openhands/sdk/context/condenser
   base.py421661%62, 117, 144–147, 149–150, 152, 156, 158, 163, 166–167, 170, 174
   llm_summarizing_condenser.py1036734%51, 58, 72, 76–77, 80–83, 86–87, 89, 94, 97–98, 105–107, 113–114, 122, 124–128, 130, 152, 155, 157, 164, 168, 172–176, 178, 201–202, 204, 206–208, 210–212, 214, 218–219, 221–222, 224, 234, 237, 240, 245, 248, 251, 258–259, 261, 273, 277–278, 284, 286
TOTAL14609695352% 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants