Skip to content

chore: refresh stale 1.22.1 doc examples after agent-server bump to 1.23.0#694

Merged
hieptl merged 1 commit into
mainfrom
hieptl/app-1885
May 21, 2026
Merged

chore: refresh stale 1.22.1 doc examples after agent-server bump to 1.23.0#694
hieptl merged 1 commit into
mainfrom
hieptl/app-1885

Conversation

@hieptl
Copy link
Copy Markdown
Contributor

@hieptl hieptl commented May 21, 2026

  • A human has tested these changes.

Why

Description

PR #670 bumped versions.agentServer in config/defaults.json from 1.22.1 to 1.23.0 (and updated the default-version test assertions in __tests__/scripts/dev-safe.test.ts), but left several JSDoc and AGENTS.md examples still mentioning 1.22.1. This drift makes the docs misleading for contributors who are pinning a specific version or running the version-sync script.

Following the pattern set by agent-canvas PR #477 — which includes "refreshing documentation examples throughout the repository" as part of every version bump — refresh the stale references so they match the central pin.

versions.automationSdk (1.22.1) is intentionally left alone — it records the SDK version that the released openhands-automation PyPI package was built against and may lag versions.agentServer by design (see the header comment in scripts/check-sdk-version-sync.mjs).

Acceptance criteria

  • AGENTS.md references to the agent-server default version read 1.23.0.
  • scripts/dev-safe.mjs, scripts/check-sdk-version-sync.mjs, and scripts/check-acp-providers-sync.mjs JSDoc/comment examples read 1.23.0.
  • A regression test fails if any documented example drifts from versions.agentServer in config/defaults.json.
  • versions.automationSdk is not touched.
  • CI version-sync check (node scripts/check-sdk-version-sync.mjs) still passes.

Out of scope

  • Bumping versions.automationSdk — separate concern, tied to the released automation PyPI package.
  • Historical 1.18.0 examples in .env.sample / DEVELOPMENT.md — these are unrelated env-override illustrations, not default-version references.
  • Test fixtures in dev-safe.test.ts / check-sdk-version-sync.test.ts / option-service.test.ts that pass arbitrary versions to assert env-override behavior.

Links

Summary

  • PR feat: use async conversations and interrupt endpoint for local mode #670 bumped versions.agentServer to 1.23.0 in config/defaults.json but did not refresh the example version strings scattered across AGENTS.md and several script JSDocs. This PR completes that refresh.
  • Adds a drift-detection test (__tests__/scripts/docs-version-sync.test.ts) so the next bump cannot silently leave docs behind.
  • versions.automationSdk is intentionally left at 1.22.1 — it tracks the released openhands-automation PyPI package's SDK dependency and is allowed to lag versions.agentServer.

Files changed

File Lines What
AGENTS.md 2 OH_AGENT_SERVER_VERSION env-var example + "Default: released PyPI version" sentence
scripts/dev-safe.mjs 1 JSDoc example for OH_AGENT_SERVER_VERSION
scripts/check-sdk-version-sync.mjs 6 Usage example, dispatch-payload curl, three pip-dep examples in JSDoc, inline parser comment
scripts/check-acp-providers-sync.mjs 1 --sdk-ref usage example
__tests__/scripts/docs-version-sync.test.ts new 4 drift-detection assertions read from config/defaults.json

Why this matters

The previous bump pattern (agent-canvas #477) explicitly included "refreshing documentation examples throughout the repository" as part of every version bump. Without that step, the canonical pin in config/defaults.json and the human-readable docs drift apart, which is exactly what happened between PR #670 and this PR.

The new test reads versions.agentServer from config/defaults.json at runtime and asserts every documented example matches, so the failure mode becomes a fast unit-test red instead of a silent doc rot.

Out of scope

  • Bumping versions.automationSdk (intentionally lags — see scripts/check-sdk-version-sync.mjs header).
  • Historical 1.18.0 examples in .env.sample and DEVELOPMENT.md — these illustrate env-override usage and are not default-version references.
  • Test fixtures that pass arbitrary version strings to assert env-override behavior (e.g., the "1.18.0" strings in dev-safe.test.ts).

Issue Number

Resolves #693

Type

  • Bug fix
  • Feature
  • Refactor
  • Breaking change
  • Docs / chore

Notes

Related


🐳 Docker images for this PR

GHCR package: https://github.com/OpenHands/agent-canvas/pkgs/container/agent-canvas

Component Value
Image ghcr.io/openhands/agent-canvas
Architectures amd64, arm64
Agent Server ghcr.io/openhands/agent-server:1.23.0-python
Automation openhands-automation==1.0.0a3
Commit 30706eb304206cdfc5de8b4ab507686e01a83aad

Pull (multi-arch manifest)

# Multi-arch manifest — Docker automatically pulls the correct architecture
docker pull ghcr.io/openhands/agent-canvas:sha-30706eb

Run

docker run -it --rm \
  -p 8000:8000 \
  ghcr.io/openhands/agent-canvas:sha-30706eb

All tags pushed for this build

ghcr.io/openhands/agent-canvas:sha-30706eb-amd64
ghcr.io/openhands/agent-canvas:hieptl-app-1885-amd64
ghcr.io/openhands/agent-canvas:pr-694-amd64
ghcr.io/openhands/agent-canvas:sha-30706eb-arm64
ghcr.io/openhands/agent-canvas:hieptl-app-1885-arm64
ghcr.io/openhands/agent-canvas:pr-694-arm64
ghcr.io/openhands/agent-canvas:sha-30706eb
ghcr.io/openhands/agent-canvas:hieptl-app-1885
ghcr.io/openhands/agent-canvas:pr-694

About Multi-Architecture Support

  • Each tag (e.g., sha-30706eb) is a multi-arch manifest supporting both amd64 and arm64
  • Docker automatically pulls the correct architecture for your platform
  • Individual architecture tags (e.g., sha-30706eb-amd64) are also available if needed

@hieptl hieptl self-assigned this May 21, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agent-canvas Ready Ready Preview, Comment May 21, 2026 5:40am

Request Review

Copy link
Copy Markdown
Contributor

@all-hands-bot all-hands-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taste Rating: 🟢 Good taste - Clean documentation refresh with regression test

[RISK ASSESSMENT]

  • [Overall PR] ⚠️ Risk Assessment: 🟢 LOW
    Documentation-only changes with a new drift-detection test. No code behavior changes, no dependencies affected, no breaking changes.

VERDICT:
Worth merging: Solves the real problem of doc drift and adds a test to prevent it from happening again.

KEY INSIGHT:
Adding the drift-detection test is the right pragmatic solution - it makes this a one-time problem instead of a recurring maintenance burden.


Was this automated review useful? React with 👍 or 👎 to this review to help us measure review quality.
Workflow run: https://github.com/OpenHands/agent-canvas/actions/runs/26207753818

@github-actions
Copy link
Copy Markdown
Contributor

📸 Snapshot Test Report

✅ All snapshots match the main branch baselines.

Category Count
🔴 Changed 0
🆕 New 0
✅ Unchanged 73
Total 73
✅ Unchanged snapshots (73)

archived-conversation

  • conversation-panel-with-archived-badges
  • conversation-view-archived
  • conversation-view-sandbox-error

automations

  • automations-delete-modal
  • automations-list-active-inactive
  • automations-no-automations
  • automations-search-no-results

backends-extended

  • backend-add-blank-disabled
  • backend-add-cloud-advanced-open
  • backend-add-cloud-no-key-disabled
  • backend-add-cloud-with-key-enabled
  • backend-add-form-partially-filled
  • backend-add-invalid-url-disabled
  • backend-add-local-ready
  • backend-add-name-only-disabled
  • backend-add-two-column-layout
  • backend-add-whitespace-host-disabled
  • backend-after-switch
  • backend-cancel-nothing-saved
  • backend-dropdown-two-backends
  • backend-edit-prefilled
  • backend-manage-after-removal
  • backend-manage-two-listed
  • backend-remove-cancelled
  • backend-remove-confirmation
  • backend-switch-overlay

backends

  • backend-add-modal
  • backend-manage-modal
  • backend-selector-open

changes-tab

  • changes-deleted-file
  • changes-diff-viewer
  • changes-empty

collapsible-thinking

  • reasoning-content-collapsed
  • reasoning-content-expanded
  • think-action-collapsed
  • think-action-expanded

mcp-page

  • mcp-custom-server-1-editor-open
  • mcp-custom-server-2-url-filled
  • mcp-custom-server-3-all-filled
  • mcp-custom-server-4-installed
  • mcp-custom-server-editor
  • mcp-empty-installed
  • mcp-search-filtered
  • mcp-slack-install-1-marketplace
  • mcp-slack-install-2-modal
  • mcp-slack-install-3-filled
  • mcp-slack-install-4-installed

onboarding

  • onboarding-step-0-choose-agent
  • onboarding-step-1-check-backend
  • onboarding-step-2-setup-llm
  • onboarding-step-3-say-hello

projects-workspace-browser

  • projects-workspace-browser

settings-page

  • add-backend-modal
  • analytics-consent-modal
  • home-screen
  • settings-app-page
  • settings-page

settings-secrets

  • secrets-add-form-filled
  • secrets-add-form
  • secrets-after-save
  • secrets-delete-confirm
  • secrets-list

settings-verification

  • condenser-settings
  • verification-settings-off
  • verification-settings-on

sidebar

  • sidebar-collapsed
  • sidebar-conversation-panel
  • sidebar-filter-menu

skills-page

  • skills-empty
  • skills-loaded
  • skills-no-match
  • skills-search-filtered
  • skills-type-filter

Generated by the Snapshot Tests workflow. This comment was created by an AI agent (OpenHands) on behalf of the repo maintainers.

@hieptl hieptl merged commit 5041361 into main May 21, 2026
21 checks passed
@hieptl hieptl deleted the hieptl/app-1885 branch May 21, 2026 05:49
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.

Refresh stale 1.22.1 doc examples after agent-server bump to 1.23.0

2 participants