#17766·OpenHands

Document per-conversation Docker sandboxes in the README

Author: enystCreated Sep 28, 2026Updated Sep 28, 2026
Labelsenhancementpriority:lowready-for-dev

Problem or Motivation

The README documents native execution and a single Docker container for the Canvas stack, but does not explain the existing OH_CONVERSATION_RUNTIME=docker option. Users cannot discover how to run separate conversation containers or understand their filesystem boundary.

Desired Behavior

Add a concise With Multiple Docker Sandboxes quickstart explaining prerequisites, the launch command, per-conversation execution, and workspace persistence/sharing. Keep Windows guidance consistent.

Acceptance Criteria

  • README includes a copyable launch command and the required host tools/Docker access.
  • Explain that the outer services run on the host and new conversations execute in individual containers.
  • Explain persisted history/workspaces and that selecting the same host workspace still shares files.
  • Windows guidance directs users to the appropriate Linux environment; existing quickstart numbering remains consistent.

Alternatives Considered

No response

Additional Context

Documentation only; no runtime changes. Created by Codex helping @enyst, following his request for this README section.


OpenHands AI triage

The following comments and acceptance criteria were added by the OpenHands AI agent.

Triage

Documentation-only change, requested by a maintainer, for an existing mechanism. The agent-server already supports conversation_runtime: "local" | "docker" (Config.conversation_runtime in OpenHands/software-agent-sdk), and the npm launchers already forward it: buildAgentServerEnv in scripts/dev-safe.mjs passes through OH_CONVERSATION_RUNTIME, OH_CONVERSATION_IMAGE, and the OH_CONVERSATION_CONTAINER_* settings. The gap is discovery, not behavior.

Bounded scope: add one new quickstart subsection to README.md describing host-run outer services with per-conversation Docker containers, and update README.windows.md in the same change. .agents/skills/local-stack-runtime/references/guide.md requires README and README.windows.md install/Docker-sandbox instructions to stay in sync, so both are in scope.

Non-goals: no runtime, launcher, or API changes; no new flags or environment variables; the existing "Option 2: With a Docker Sandbox" all-in-one container quickstart is unchanged; Windows per-conversation sandboxes are documented as requiring a Linux environment rather than supported natively.

Acceptance Criteria

  • README.md adds a new quickstart subsection for per-conversation Docker sandboxes as the next sequential option after the existing Docker Sandbox option, leaving the surrounding quickstart numbering consistent.
  • The subsection lists the host prerequisites: Node.js 24+, uv, and a Docker daemon plus CLI reachable by the user running the stack, since the agent-server launches sibling containers with docker run.
  • It provides a copy-pasteable command that starts the outer stack with OH_CONVERSATION_RUNTIME=docker for a supported launch path (npm agent-canvas or npm run dev from source).
  • It states that the outer services (frontend, ingress, agent-server, automation) run on the host, while each new conversation executes in its own Docker container started by the agent-server.
  • It documents that conversation history persists on the host independent of the container lifecycle, and that each conversation has a persisted workspace, so selecting the same host workspace directory shares its files with the host and with any other conversation configured with it.
  • README.windows.md is updated in the same change to direct Windows users to the appropriate Linux environment (e.g. WSL2) for per-conversation Docker sandboxes, and README.md links to it the same way the existing Docker option does.
  • Validation: the added Markdown renders correctly (headings, code fences), the command is copy-pasteable, and referenced environment variables match the ones the launchers forward (OH_CONVERSATION_RUNTIME and the related OH_CONVERSATION_IMAGE / OH_CONVERSATION_CONTAINER_* settings).