Skip to content

fix(agent-server): evict idle terminal conversations#3266

Open
DeepaliPaspule wants to merge 1 commit into
OpenHands:mainfrom
DeepaliPaspule:codex/agent-server-conversation-idle-eviction
Open

fix(agent-server): evict idle terminal conversations#3266
DeepaliPaspule wants to merge 1 commit into
OpenHands:mainfrom
DeepaliPaspule:codex/agent-server-conversation-idle-eviction

Conversation

@DeepaliPaspule
Copy link
Copy Markdown

Summary

  • add configurable idle TTL and GC interval settings for terminal conversations in the agent server
  • evict stale terminal conversations from _event_services, keep them visible via persisted search/count/get paths, and lazily rehydrate them on demand
  • skip eagerly loading already-expired terminal conversations at startup and cover the new lifecycle with conversation-service tests

Closes #3141.

Testing

  • python3 -m py_compile openhands-agent-server/openhands/agent_server/conversation_service.py openhands-agent-server/openhands/agent_server/config.py tests/agent_server/test_conversation_service.py
  • python3 -m pytest tests/agent_server/test_conversation_service.py -q (blocked locally: dependency install failed because the machine only had ~292 MiB free and pip ran out of disk space while resolving packages)

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.

perf: no eviction or idle timeout for finished conversations

1 participant