Repository navigation
chore(sdk): sync generated SDK - #261
hai-runtime-release[bot] wants to merge 1 commit into
Conversation
347a1c8 to
4878232
Compare
40b64b2 to
bcc4384
Compare
| object_=_response.json(), | ||
| ), | ||
| ), | ||
| ) |
There was a problem hiding this comment.
412 handler requires a JSON body
Medium Severity
New 412 branches always call _response.json() before raising PreconditionFailedError. The spec documents those responses as header-only (ETag, no content). An empty or non-JSON 412 becomes a generic ApiError, so callers cannot catch the dedicated precondition error or rely on that type when If-Match fails.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit bcc4384. Configure here.
bcc4384 to
a15e6f2
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a15e6f2. Configure here.
| agent_name: typing.Optional[str] = None, | ||
| search: typing.Optional[str] = None, | ||
| reserved: typing.Optional[bool] = None, | ||
| include: typing.Optional[ListAgentsRequestInclude] = None, |
There was a problem hiding this comment.
List agents omits revision type
Medium Severity
list_agents documents that include="revision" returns AgentWithRevision items, but both the typed and raw clients still parse the body as PageAgent of Agent. The new include option never constructs AgentWithRevision, so callers do not get a first-class revision field from the list response.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit a15e6f2. Configure here.
a15e6f2 to
8f9f026
Compare
8f9f026 to
3689c6e
Compare


Auto-generated from the upstream codegen home.
Upstream: agent_platform@4150c80
Note
Medium Risk
Agent CRUD semantics and concurrency behavior changed (revisions, ETag/If-Match, new 412 errors), which can break callers that assumed overwrite-in-place updates.
Overview
Syncs the generated hai_agents client and openapi.json with upstream agent revision history and optimistic concurrency.
Agents are now versioned: creates start at revision 1, and PUT/PATCH create a new revision (with optional
messagequery param). Reads can targetrevision, successful responses documentETag, and mutating calls acceptIf-Match(412 when stale). New client methods coverlist_agent_revisionsandrestore_agent_revision;list_agentsgainsinclude=revisionforAgentWithRevisionitems.delete_agentcan also sendIf-Match.The SDK adds
AgentRevisionRecord,AgentWithRevision,PageAgentRevisionRecord, and exportsPreconditionFailedErrorfor 412 handling on agent writes.SessionandSessionSummarynow include optionalagent_revisionwhen a catalog agent is pinned.Smaller OpenAPI-driven tweaks: patch/request schemas use
oneOfwhere appropriate, and patch helpers for skills, environments, and schedules reflect stricter field typing in generated clients.Reviewed by Cursor Bugbot for commit 3689c6e. Bugbot is set up for automated code reviews on this repo. Configure here.