Skip to content

chore(sdk): sync generated SDK - #261

Open
hai-runtime-release[bot] wants to merge 1 commit into
mainfrom
sync/agp
Open

hai-runtime-release[bot] wants to merge 1 commit into
mainfrom
sync/agp

Conversation

@hai-runtime-release

@hai-runtime-release hai-runtime-release Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

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 message query param). Reads can target revision, successful responses document ETag, and mutating calls accept If-Match (412 when stale). New client methods cover list_agent_revisions and restore_agent_revision; list_agents gains include=revision for AgentWithRevision items. delete_agent can also send If-Match.

The SDK adds AgentRevisionRecord, AgentWithRevision, PageAgentRevisionRecord, and exports PreconditionFailedError for 412 handling on agent writes. Session and SessionSummary now include optional agent_revision when a catalog agent is pinned.

Smaller OpenAPI-driven tweaks: patch/request schemas use oneOf where 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.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

object_=_response.json(),
),
),
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit bcc4384. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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).

Fix All in Cursor

❌ 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,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit a15e6f2. Configure here.

@hai-runtime-release hai-runtime-release Bot changed the title chore(sdk): sync generated SDK (v1.2.7) chore(sdk): sync generated SDK Oct 19, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant