Repository navigation
Description
Bug Description
After an existing local Agent Server installation switches to OH_CONVERSATION_RUNTIME=docker, the Docker registry configures one per-conversation cipher resolver for the shared conversation catalog. Catalog startup invokes that resolver for every persisted conversation. Historical local conversations do not have Docker runtime identity manifests, so resolution fails before meta.json can be read; the server logs error_loading_conversation_catalog and omits those conversations from search/list results.
This was reproduced during the SDK 1.49.1 upgrade on dev-oss-automation: 2,326 existing conversation directories were present, but only a newly created Docker conversation was returned.
Actual Behavior
Run the agent server with uv run python -m openhands.agent_server against a conversations directory populated in local runtime mode, then restart it with OH_CONVERSATION_RUNTIME=docker. GET /api/conversations/search omits every historical local conversation because each directory fails Docker identity lookup during catalog loading.
Expected Behavior
Historical local conversations remain visible after switching runtime mode and are explicitly marked as unavailable for resume. Docker-provisioned conversations retain per-conversation cipher isolation.
Acceptance Criteria
- Historical local conversations remain visible in conversation search/listing after the server switches to Docker runtime mode.
- Search, detail, and batch responses report historical local conversations as
runtime_info.runtime_status=missingandruntime_info.can_resume=false, allowing clients to present them with archived-conversation behavior. - Docker-provisioned conversations continue to decrypt catalog metadata with their own per-conversation cipher.
- Runtime state loading for Docker-provisioned conversations still requires the provisioned per-conversation cipher; catalog compatibility does not weaken runtime cipher isolation.
- Missing Docker provisioning identity is handled as an explicit catalog compatibility case; malformed or undecryptable provisioning state is not silently treated as a local conversation.
- Targeted tests reproduce the mixed historical-local/new-Docker catalog and verify the cipher boundary.
SDK Version
1.49.1
Operating System
Linux
Activity
github-actions commentedon Sep 17, 2026
✅
ready-for-devlabel appliedThis issue meets the readiness criteria and is ready for contribution.
A contributor can now open a PR that links this issue (
Fixes #<number>).This is an automated check — no AI was used to generate this comment.