Repository navigation
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
Contributor
Python API breakage checks — ✅ PASSEDResult: ✅ PASSED |
Contributor
REST API breakage checks (OpenAPI) — ✅ PASSEDResult: ✅ PASSED |
Contributor
Coverage Report •
|
||||||||||||||||||||
neubig
self-requested a review
July 13, 2026 04:42
Member
|
I'd like to help get this merged, since it's solving a significant problem as conversation count gets higher. One other potential solution is to actually create an sqlite database for instance. |
Member
|
Actually, with lazy loading I'm less convinced that this is the bottleneck, so I might remove myself as a reviewer. |
neubig
removed their request for review
July 14, 2026 05:49
1 of 5 tasks
Collaborator
|
[Automatic Post]: It has been a while since there was any activity on this PR. @enyst, are you still working on it? If so, please go ahead, if not then please request review, close it, or request that someone else follow up. This comment was created by an AI agent (OpenHands) on behalf of the user. |
Member
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.
HUMAN:
AGENT:
This PR was created by an AI agent (OpenHands) on behalf of the user.
Why
Fixes #3142. The issue is still real on the current codebase:
_search_conversationswas still iterating everyEventService, callingget_state()on each one, sorting the full list, then paginating._count_conversationssimilarly loaded every conversation state.Summary
get_state()for off-page conversations once the index is populated.Issue Number
Fixes #3142
How to Test
Commands run successfully:
Observed results:
1 passed78 passedReproduction/evidence note: the new regression seeds five conversations in the metadata index, requests a two-item first page, and asserts that only those two page items call
get_state(); it also asserts indexed count calls do not add anyget_state()calls.Video/Screenshots
Not applicable; this is an agent-server backend performance fix with automated test coverage.
Type
Notes
The search path still reconciles missing metadata if private test/setup code mutates
_event_servicesdirectly, but the normal service lifecycle maintains the index incrementally.@enyst 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.13-nodejs22-slimgolang: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:3175bb4-pythonRun
All tags pushed for this build
About Multi-Architecture Support
3175bb4-python) is a multi-arch manifest supporting both amd64 and arm643175bb4-python-amd64) are also available if needed