This repository was archived by the owner on Sep 7, 2026. It is now read-only.
Repository navigation
feat: generate pinned Agent Server API types - #301
Merged
Merged
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
Contributor
Endpoint audit❌ 40 off-contract call(s) — not on the agent-server · classifiers: cloud
❌ Not on agent-server (gated, 40)⛔ (no known backend) — served by no backend we can see (15)
|
2 of 6 tasks
neubig
marked this pull request as ready for review
July 27, 2026 18:36
This was referenced Jul 27, 2026
Contributor
|
🚀 Released in v1.35.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The handwritten client currently has no deterministic check against the exact
Agent Server version it claims to support. Server schema drift can therefore
leave stale request/response signatures in a released client.
Fixes OpenHands/software-agent-sdk#4752
Linear: OSS-6122
Summary
config.agentServerImagepin, using the matching release artifact or anisolated exact-image fallback for legacy releases.
request/response signatures while retaining a deprecated compatibility
overload for existing extension-shaped callers.
unpinned
latestendpoint.Issue Number
OpenHands/software-agent-sdk#4752 / OSS-6122
How to Test
npm cinpm run check:agent-server-apinpm run buildnpm run lintnpm run format:checkenv -u AGENT_SERVER_URL npm run test:coverage— 17 suites and 291 testspassed.
Agent Canvas was tested against the exact locally packed client:
npm run typecheckandnpm run build; both passed.The consumer run used a temporary HOME, separate XDG config/data/cache paths,
and separate Canvas state/settings directories. It did not read or write
~/.openhands, and the complete temporary tree was removed afterward.Video/Screenshots
Not applicable: this is generated contract and compile-time client
infrastructure with no UI change.
Type
Notes
Depends on OpenHands/software-agent-sdk#4229 for release-published OpenAPI
artifacts. The exact-image fallback keeps regeneration reproducible for the
currently pinned 1.37.0 release, which predates those artifacts. Canonical MCP
operation migration remains in OpenHands/software-agent-sdk#4753 / OSS-6123.