Skip to content

release: 0.52.0#98

Merged
stainless-app[bot] merged 4 commits intomainfrom
release-please--branches--main--changes--next
Apr 29, 2026
Merged

release: 0.52.0#98
stainless-app[bot] merged 4 commits intomainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app
Copy link
Copy Markdown
Contributor

@stainless-app stainless-app Bot commented Apr 28, 2026

Automated Release PR

0.52.0 (2026-04-29)

Full Changelog: v0.51.0...v0.52.0

Features

  • go: add default http client with timeout (a999228)
  • profile download: 202 for empty profile + surface API errors in dashboard (c14aef2)
  • support setting headers via env (728fe39)

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
Changes the SDK’s default HTTP client/transport behavior for all consumers, which can alter timeout/failure modes in production. Header injection via env is straightforward but could cause unexpected request differences if misconfigured.

Overview
Release v0.52.0: bumps package/version metadata and updates the README install snippet and changelog.

The client now uses a new default http.Client (cloned transport with a ResponseHeaderTimeout) when callers don’t provide one, and DefaultClientOptions() can additionally apply request headers from KERNEL_CUSTOM_HEADERS (newline-separated Key: Value pairs). A small docstring update clarifies Profiles.Download() returns a zstd-compressed tar of the user-data directory.

Reviewed by Cursor Bugbot for commit 4d8d254. Bugbot is set up for automated code reviews on this repo. Configure here.

@firetiger-agent
Copy link
Copy Markdown

Firetiger deploy monitoring skipped

This PR didn't match the auto-monitor filter configured on your GitHub connection:

Any PR that changes the kernel API. Monitor changes to API endpoints (packages/api/cmd/api/) and Temporal workflows (packages/api/lib/temporal) in the kernel repo

Reason: This is an automated release PR for the Go SDK, not a change to kernel API endpoints or Temporal workflows in the kernel repo.

To monitor this PR anyway, reply with @firetiger monitor this.

@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app Bot commented Apr 29, 2026

🧪 Testing

To try out this version of the SDK:

Download and unzip: 'https://pkg.stainless.com/s/kernel-go/c14aef289c5418906fb003893a728ec11cf549cc/source.zip'. Run 'go mod edit -replace github.com/kernel/kernel-go-sdk=/path/to/unzipped_directory'.

Expires at: Fri, 29 May 2026 14:37:44 GMT
Updated at: Wed, 29 Apr 2026 14:37:44 GMT

@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from c8be7d0 to 4d8d254 Compare April 29, 2026 14:37
Copy link
Copy Markdown

@cursor cursor Bot left a comment

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 and found 1 potential issue.

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 4d8d254. Configure here.

Comment thread default_http_client.go
// and adds a [http.Transport.ResponseHeaderTimeout] so stuck connections
// fail fast instead of compounding across retries.
func defaultHTTPClient() *http.Client {
transport := http.DefaultTransport.(*http.Transport).Clone()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unchecked type assertion may panic on initialization

Medium Severity

The expression http.DefaultTransport.(*http.Transport) is an unchecked type assertion that will panic if http.DefaultTransport has been replaced with a non-*http.Transport implementation (e.g., by test mocking libraries like httpmock or gock, or custom middleware). Since this runs during NewClient() initialization, the panic is unrecoverable. The rest of the codebase (e.g., rawcurl.go) safely uses http.DefaultTransport via the RoundTripper interface without asserting the concrete type. Using the comma-ok form of the assertion would allow a graceful fallback.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 4d8d254. Configure here.

Copy link
Copy Markdown
Contributor

@masnwilliams masnwilliams left a comment

Choose a reason for hiding this comment

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

lgtm

@stainless-app stainless-app Bot merged commit cf82cd0 into main Apr 29, 2026
7 checks passed
@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app Bot commented Apr 29, 2026

🤖 Release is at https://github.com/kernel/kernel-go-sdk/releases/tag/v0.52.0 🌻

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