π OpenHands: AI-Driven Development
chore: bump agent-server to 1.58.1, automation to 1.25.1, and @openhands/extensions to 0.35.0 (#18851)
OpenHands Bot060621fde6a7
diff --git a/.agents/skills/local-stack-runtime/references/guide.md b/.agents/skills/local-stack-runtime/references/guide.mdindex 6ba82af3a0..4696001212 100644--- a/.agents/skills/local-stack-runtime/references/guide.md+++ b/.agents/skills/local-stack-runtime/references/guide.md@@ -93,11 +93,11 @@ you are running inside of β NOT the automation backend.- `scripts/dev-safe.mjs` uses `uvx` for temporary agent-server installation β no permanent `uv tool install` needed. Environment variables (highest precedence first):- `OH_AGENT_SERVER_LOCAL_PATH` β absolute path to a local `software-agent-sdk` checkout. Runs the local checkout via `uvx` with `--with-editable` for `openhands-sdk`/`openhands-tools`/`openhands-workspace` and `--reinstall` for `openhands-agent-server`, so SDK edits are picked up on restart. Highest precedence.- `OH_AGENT_SERVER_GIT_REF` β git commit SHA or branch name (takes precedence over version)- - `OH_AGENT_SERVER_VERSION` β specific PyPI version (e.g., "1.57.0")+ - `OH_AGENT_SERVER_VERSION` β specific PyPI version (e.g., "1.58.1")- `UV_PYTHON` β Python version or range uvx may use for agent-server and automation. Defaults to `python.uvxRequest` in `config/defaults.json` (`>=3.12,<3.15`), so a machine with no supported Python downloads the newest 3.14 instead of the newest CPython, whose wheels the SDK's compiled dependencies lag behind (#18654).- `OH_SECRET_KEY` β secret key for settings encryption; auto-generated and persisted to `~/.openhands/agent-canvas/secret-key.txt` on first run (same file Docker uses), ensuring dev mode and Docker share the same key when both mount the same `~/.openhands` directory. Override with the env var to pin a specific key.- `SESSION_API_KEY` / `OH_SESSION_API_KEYS_0` / `VITE_SESSION_API_KEY` β session API key for agent-server authentication; auto-generated using `crypto.randomBytes(32)` if not set, passed to both agent-server (`OH_SESSION_API_KEYS_0`) and frontend (`VITE_SESSION_API_KEY`)- - Default: released PyPI version `1.57.0` for agent-server SDK libraries+ - Default: released PyPI version `1.58.1` for agent-server SDK libraries- Security: launchers generate and persist a 64-character session API key at `~/.openhands/agent-canvas/session-api-key.txt` unless overridden. The agent-server and automation backend share that session key. `OH_SECRET_KEY` protects settings encryption and is persisted separately at `~/.openhands/agent-canvas/secret-key.txt`.- `scripts/dev-safe.mjs` should fail fast if `uvx` cannot be spawned (for example missing PATH entries).diff --git a/.pr/sdk-version-bump.svg b/.pr/sdk-version-bump.svgnew file mode 100644index 0000000000..38ccaf76b2--- /dev/null+++ b/.pr/sdk-version-bump.svg@@ -0,0 +1,7 @@+<svg xmlns="http://www.w3.org/2000/svg" width="620" height="260" viewBox="0 0 620 260">+ <rect width="100%" height="100%" fill="#0d1117"/>+ <text x="24" y="40" font-family="monospace" font-size="18" fill="#3fb950">SDK version bump evidence</text>+ <text x="24" y="76" font-family="monospace" font-size="15" fill="#e6edf3">versions.agentServer: 1.57.0 -> 1.58.1</text>+ <text x="24" y="104" font-family="monospace" font-size="15" fill="#e6edf3">@openhands/typescript-client: 1.57.0 -> 1.58.1</text>+ <text x="24" y="132" font-family="monospace" font-size="15" fill="#e6edf3">package.json/package-lock.json + doc/test literals synced to 1.58.1</text>+</svg>diff --git a/__tests__/scripts/dev-safe.test.ts b/__tests__/scripts/dev-safe.test.tsindex be8d8d8249..c25688a462 100644--- a/__tests__/scripts/dev-safe.test.ts+++ b/__tests__/scripts/dev-safe.test.ts@@ -544,20 +544,20 @@ describe("buildAgentServerCommand", () => {"--python",">=3.12,<3.15","--from",- "openhands-agent-server==1.57.0",+ "openhands-agent-server==1.58.1","--with",- "openhands-sdk==1.57.0",+ "openhands-sdk==1.58.1","--with",- "openhands-tools==1.57.0",+ "openhands-tools==1.58.1","--with",- "openhands-workspace==1.57.0",+ "openhands-workspace==1.58.1","--with","posthog>=6,<7","agent-server","--import-modules","canvas_ui_tool",]);- expect(cmd.source).toBe("PyPI (1.57.0, default)");+ expect(cmd.source).toBe("PyPI (1.58.1, default)");});it("uses specific PyPI version when OH_AGENT_SERVER_VERSION is set with all packages pinned", () => {diff --git a/config/defaults.json b/config/defaults.jsonindex 83dde8e03e..f356a1673e 100644--- a/config/defaults.json+++ b/config/defaults.json@@ -1,9 +1,9 @@{"_comment": "Single source of truth for version pins, ports, paths, and defaults shared across the npm and Docker install paths. Read by scripts/dev-safe.mjs, scripts/dev-with-automation.mjs, docker/entrypoint.sh (via generated defaults.env), and .github/workflows/docker.yml.","versions": {- "agentServer": "1.57.0",+ "agentServer": "1.58.1","agentCanvas": "1.31.0",- "automation": "1.23.2"+ "automation": "1.25.1"},"compatibility": {"minimumAgentServer": "1.55.0"diff --git a/package-lock.json b/package-lock.jsonindex 654b376399..850147bf16 100644--- a/package-lock.json+++ b/package-lock.json@@ -13,8 +13,8 @@"@heroui/react": "2.8.10","@microlink/react-json-view": "1.31.25","@monaco-editor/react": "4.7.0",- "@openhands/extensions": "0.34.0",- "@openhands/typescript-client": "1.57.0",+ "@openhands/extensions": "0.35.0",+ "@openhands/typescript-client": "1.58.1","@react-router/node": "7.18.2","@react-router/serve": "7.18.2","@tailwindcss/vite": "4.3.3",@@ -4138,9 +4138,9 @@"license": "MIT"},"node_modules/@openhands/extensions": {- "version": "0.34.0",- "resolved": "https://registry.npmjs.org/@openhands/extensions/-/extensions-0.34.0.tgz",- "integrity": "sha512-kttWMQz6kQ6IkKlenC2jtfTtmHf0G/ef64m6uCsH5a/gAreA1+TiMPg7U6wAxbFo7f2h7k+1E36i184PRdNLEA==",+ "version": "0.35.0",+ "resolved": "https://registry.npmjs.org/@openhands/extensions/-/extensions-0.35.0.tgz",+ "integrity": "sha512-lHuGF9lC+yBkNq3gpG3iCRgY/eSVlFggkRvaRo1QpWESxIYFX5cIRZKts0e13YWSmajShPaIUr5L/9cISQwzuQ==","license": "MIT","engines": {"node": ">=18.20.0"@@ -4152,9 +4152,9 @@}},"node_modules/@openhands/typescript-client": {- "version": "1.57.0",- "resolved": "https://registry.npmjs.org/@openhands/typescript-client/-/typescript-client-1.57.0.tgz",- "integrity": "sha512-H5rc1VSdzSKw0Qrko41omPlM+ofGszfJAvf/bqhL/lyMnEvQFI5fpO5l6DrqVqyHIkPo5A8dpJcWhoglddQAsw==",+ "version": "1.58.1",+ "resolved": "https://registry.npmjs.org/@openhands/typescript-client/-/typescript-client-1.58.1.tgz",+ "integrity": "sha512-qH2vwQG+2hZoDFxvYIvUHwEq9KtcUJn+1cRuY/yGESLZdYXR0UewB8l12LsHQZFed5SMfV98CP8uq9DfR7cmsQ==","license": "MIT","dependencies": {"@openrouter/sdk": "^1.2.11",diff --git a/package.json b/package.jsonindex 54aceb5f74..bb705b2c63 100644--- a/package.json+++ b/package.json@@ -23,8 +23,8 @@"@heroui/react": "2.8.10","@microlink/react-json-view": "1.31.25","@monaco-editor/react": "4.7.0",- "@openhands/extensions": "0.34.0",- "@openhands/typescript-client": "1.57.0",+ "@openhands/extensions": "0.35.0",+ "@openhands/typescript-client": "1.58.1","@react-router/node": "7.18.2","@react-router/serve": "7.18.2","@tailwindcss/vite": "4.3.3",diff --git a/scripts/check-sdk-version-sync.mjs b/scripts/check-sdk-version-sync.mjsindex 71dd2a8c39..da0e22e707 100644--- a/scripts/check-sdk-version-sync.mjs+++ b/scripts/check-sdk-version-sync.mjs@@ -26,7 +26,7 @@** Usage:* node scripts/check-sdk-version-sync.mjs- * EXPECTED_SDK_VERSION=1.57.0 node scripts/check-sdk-version-sync.mjs+ * EXPECTED_SDK_VERSION=1.58.1 node scripts/check-sdk-version-sync.mjs* node scripts/check-sdk-version-sync.mjs --check-pypi** Environment variables:@@ -85,7 +85,7 @@ Triggering from other repos:-H "Authorization: token \$GITHUB_TOKEN" \\-H "Accept: application/vnd.github.v3+json" \\https://api.github.com/repos/OpenHands/OpenHands/dispatches \\- -d '{"event_type": "sdk-version-check", "client_payload": {"version": "1.57.0"}}'+ -d '{"event_type": "sdk-version-check", "client_payload": {"version": "1.58.1"}}'`);process.exit(0);}@@ -300,9 +300,9 @@ async function fetchPyPIDependencies(packageName, version) {* Parse PyPI requires_dist array and extract SDK package versions** PyPI returns dependencies in PEP 508 format like:- * "openhands-sdk>=1.57.0,<2.0.0"- * "openhands-tools==1.57.0"- * "openhands-workspace (>=1.57.0)"+ * "openhands-sdk>=1.58.1,<2.0.0"+ * "openhands-tools==1.58.1"+ * "openhands-workspace (>=1.58.1)"*/function parseSdkVersionsFromRequiresDist(requiresDist) {const versions = {};@@ -316,7 +316,7 @@ function parseSdkVersionsFromRequiresDist(requiresDist) {}// Extract the version number - look for patterns like:- // ">=1.57.0", "==1.57.0", "(>=1.57.0)", "~=1.57.0"+ // ">=1.58.1", "==1.58.1", "(>=1.58.1)", "~=1.58.1"// After the package name and before any comma or closing parenconst versionPattern = /[><=~!]+\s*([0-9]+(?:\.[0-9]+)*)/;const match = dep.match(versionPattern);diff --git a/scripts/dev-safe.mjs b/scripts/dev-safe.mjsindex 1f79b0f816..9b580f480f 100644--- a/scripts/dev-safe.mjs+++ b/scripts/dev-safe.mjs@@ -442,7 +442,7 @@ export function buildUvxPythonArgs(env = process.env) {* edits are picked up without a manual reinstall. The agent-server itself* is rebuilt from local source on each invocation (--reinstall).* - OH_AGENT_SERVER_GIT_REF: Git commit SHA or branch name- * - OH_AGENT_SERVER_VERSION: Specific PyPI version (e.g., "1.57.0")+ * - OH_AGENT_SERVER_VERSION: Specific PyPI version (e.g., "1.58.1")** If none are set, defaults to the released version specified by* DEFAULT_AGENT_SERVER_VERSION. Set OH_AGENT_SERVER_GIT_REF to use a