Skip to content

Keep historical local conversations visible after switching to Docker runtime #5127

Closed

Description

@neubig

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=missing and runtime_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

  1. added
    ready-for-dev
    on Sep 17, 2026
  2. removed
    ready-for-dev
    on Sep 17, 2026
  3. github-actions commented on Sep 17, 2026

    @github-actions
    Contributor

    ✅ ready-for-dev label applied

    This 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.

  4. added
    ready-for-dev
    on Sep 17, 2026
  5. removed
    ready-for-dev
    on Sep 17, 2026
  6. added
    ready-for-dev
    on Sep 17, 2026
  7. removed
    ready-for-dev
    on Sep 17, 2026
  8. added
    bug
    ready-for-dev
    on Sep 17, 2026
  9. added
    priority:high
    release-note-required
    on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdockerpriority:highready-for-devrelease-note-requiredsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions