chore(sdk): sync to agent_platform@8e6b5b0 (v1.0.1)#158
Merged
Conversation
BrowserVisualMode/BrowserTextMode drop the const+default type field on the base model; Fern carries the visual/text tag on the BrowserMode_* variants. Add them to FIELD_DROPPED_ENTIRELY so the spec-default guard stays green. Co-authored-by: Cursor <cursoragent@cursor.com>
adeprezh
approved these changes
Jun 29, 2026
This was referenced Jun 29, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Auto-generated from
agent_platform's codegen home (sdk-codegen/).Version:
1.0.1(patch; every sync bumps +0.0.1) · upstream flagged this a breaking changeUpstream: agent_platform@8e6b5b0
Note
High Risk
Upstream flagged a breaking API change: callers must migrate from string modes and flat viewport/page fields to discriminated mode objects or requests will fail or misconfigure browsers.
Overview
Bumps hai-agents to 1.0.1 (User-Agent headers, lockfile) and renames the OpenAPI product title to Computer-Use Agents.
Breaking: browser environment configuration no longer uses a top-level
modestring (visual/text/multimodal) plus separatewidth,height, andpage_charson the browser spec. Those settings now live on a discriminatedmodeobject (type:visual|text): visual carries viewportwidth/heightand amarkdownflag (replacing multimodal); text useschunk_size(replacing page_chars). The same shape applies to PATCH environment updates viaPatchEnvironmentMode_*variants.Generated SDK surface changes: new
BrowserTextMode/BrowserVisualModetypes, environment create/update/patch clients drop the old scalar parameters and serializemodethrough the union helpers; package exports and spec-default tests are updated for droppedtypediscriminator fields on the mode schemas.Reviewed by Cursor Bugbot for commit 3c9ef37. Bugbot is set up for automated code reviews on this repo. Configure here.