Skip to content
This repository was archived by the owner on Jul 27, 2026. It is now read-only.
This repository was archived by the owner on Jul 27, 2026. It is now read-only.

[Bug]: examples/acp-docker hardcodes agent-server version below the Canvas compatibility floor #2020

Closed

Description

@georgeglarson

Operating System

Linux

Installation Method

From source (npm run dev / npm run dev:minimal)

Bug Description

examples/acp-docker/docker-compose.yml hardcodes image: ghcr.io/openhands/agent-server:1.25.0-python. Canvas enforces compatibility.minimumAgentServer (currently 1.28.0) from config/defaults.json, so the example's default image is below the floor and the backend banner renders "Disconnected — requires 1.28.0 or newer." A user following the examples/acp-docker quickstart as written never reaches the feature.

Root cause

examples/acp-docker is the only in-repo location that hardcodes an agent-server version instead of inheriting from config/defaults.json (the documented single source of truth — 14 other files read it). scripts/check-sdk-version-sync.mjs only validates the released PyPI package, not in-repo example files, so nothing catches this drift.

Steps to Reproduce

  1. cd examples/acp-docker && docker compose up (no .env)
  2. Point Canvas at http://localhost:8010
  3. Banner shows "Disconnected — requires 1.28.0 or newer" despite a valid configured credential.

Proposed fix

Make the example inherit from defaults.json: a small generator that pins AGENT_SERVER_IMAGE to ${images.agentServer}:${versions.agentServer}-python for the reproducible path, and a no-config compose fallback of latest-python (always ≥ the floor). Branch ready — happy to PR.

Activity

  1. jamiechicago312 commented on Jun 20, 2026

    @jamiechicago312
    Contributor

    Great issue for new contributors! 🎉

    Why this is a good first issue:
    This bug has a very clear reproduction path, a narrowly scoped root cause, and a small surface area to change. The issue already points to the exact example that drifted from the repo's shared version pin, so the work is more about aligning one example with existing project conventions than designing a brand-new feature. It's also a nice introduction to how Agent Canvas keeps version pins centralized in config/defaults.json.

    Instructions for tackling this issue:
    Start by looking at examples/acp-docker/docker-compose.yml, then compare it with the shared version source in config/defaults.json and the surrounding ACP docs in examples/acp-docker/README.md and docs/ACP_AGENTS.md. The key convention in this repo is to avoid magic version strings when a shared default already exists. A good fix is a minimal one that removes or reduces version drift rather than adding another hardcoded pin somewhere else. If you add a small helper or sync check, follow the existing drift-test pattern in __tests__/scripts/docs-version-sync.test.ts so future agent-server version bumps cannot silently leave the example behind again.

    Getting started:
    You can work on this issue without asking for it to be assigned to you. Feel free to open a pull request directly!

    Need help?
    Join our Slack community: https://go.openhands.dev/slack


    This comment was created by an AI agent (OpenHands) on behalf of the user.

  2. georgeglarson commented on Jun 21, 2026

    @georgeglarson
    ContributorAuthor

    Already have a fix up in #1434, opened the same day I filed this. It drops the hardcoded agent-server image and inherits the version from config/defaults.json, so the example tracks the minimumAgentServer floor instead of pinning below it (zero-config falls back to latest-python, and npm run example:acp-docker:env pins the SoT version). There's a drift guard test too.

    Happy to keep carrying it. Flagging here so it doesn't get double-grabbed as a good-first-issue.

  3. transferred this issue fromOpenHands/OpenHandson Jul 27, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions