Conversation
|
🧪 Testing To try out this version of the SDK: Expires at: Sat, 04 Apr 2026 15:43:28 GMT |
ba8aa26 to
e9fe820
Compare
e9fe820 to
eca8532
Compare
eca8532 to
c9ab673
Compare
c9ab673 to
9ff3532
Compare
9ff3532 to
6094084
Compare
Release version edited manuallyThe Pull Request version has been manually set to If you instead want to use the version number |
6094084 to
a7b55bc
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| MarshalJSON bool `json:"-"` // Prevent inheriting [json.Marshaler] from the embedded field | ||
| } | ||
| return param.MarshalObject(r, shadow{&r, false}) | ||
| } |
There was a problem hiding this comment.
Missing UnmarshalJSON silently drops Force field
Medium Severity
BrowserUpdateParamsViewport lacks its own UnmarshalJSON method, unlike every other param type in the codebase. Because it embeds shared.BrowserViewportParam which has an UnmarshalJSON, Go promotes that method. The promoted method's receiver is *BrowserViewportParam, so apijson.UnmarshalRoot only sees Height, Width, RefreshRate — the Force field is silently dropped during any JSON deserialization (e.g., when BrowserUpdateParams.UnmarshalJSON deserializes nested viewport data, or when using param.Override).
|
🤖 Release is at https://github.com/kernel/kernel-go-sdk/releases/tag/v0.42.1 🌻 |


Automated Release PR
0.42.1 (2026-03-05)
Full Changelog: v0.42.0...v0.42.1
Features
Bug Fixes
Chores
This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions
Note
Medium Risk
Introduces new/changed SDK request/response types for browser control (
BrowserUpdateParamsViewport, smooth mouse params, clipboard endpoints), which may affect callers at compile time and change runtime behavior when resizing viewports. CI also gains an artifact upload step using OIDC, which could impact build reliability if the upload script or dependencies fail.Overview
Bumps the SDK to v0.42.1 and updates release metadata/docs (
CHANGELOG.md,README.md,internal/version.go,.stats.yml,api.md).Adds browser-computer clipboard support via new
ReadClipboard/WriteClipboardmethods and request/response types, and extends mouse movement params with optionalsmooth/duration_mscontrols.Updates
Browsers.Updateviewport handling to accept a newviewportwrapper (BrowserUpdateParamsViewport) that includes aforceflag to allow resizing even during live view/recording.CI gains a
buildjob that packages Go sources and uploads the artifact to Stainless storage using a GitHub OIDC token (scripts/utils/upload-artifact.sh).Written by Cursor Bugbot for commit a7b55bc. This will update automatically on new commits. Configure here.