-
Notifications
You must be signed in to change notification settings - Fork 2
release: 0.52.0 #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
stainless-app
merged 4 commits into
main
from
release-please--branches--main--changes--next
Apr 29, 2026
Merged
release: 0.52.0 #98
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
a999228
feat(go): add default http client with timeout
stainless-app[bot] 728fe39
feat: support setting headers via env
stainless-app[bot] c14aef2
feat: profile download: 409 for empty profile + surface API errors in…
stainless-app[bot] 4d8d254
release: 0.52.0
stainless-app[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| ".": "0.51.0" | ||
| ".": "0.52.0" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| configured_endpoints: 112 | ||
| openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-a674e3c4c0063942621d1b4e7f67b72f7e240c12dd88564fe16627618ba33dd6.yml | ||
| openapi_spec_hash: 8b97c87f0dafe5fc5e5a7365f3687755 | ||
| openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-4ce09d1a7546ab36f578cb27d819187eeb90c580b11834c7ff7a375aa22f9a20.yml | ||
| openapi_spec_hash: 1043ab2d699f6c828680c3352cd4cece | ||
| config_hash: 08d55086449943a8fec212b870061a3f |
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
|
||
| package kernel | ||
|
|
||
| import ( | ||
| "net/http" | ||
| "time" | ||
| ) | ||
|
|
||
| // defaultResponseHeaderTimeout bounds the time between a fully written request | ||
| // and the server's response headers. It does not apply to the response body, | ||
| // so long-running streams are unaffected. Without this, a server that accepts | ||
| // the connection but never responds would hang the request indefinitely. | ||
| const defaultResponseHeaderTimeout = 10 * time.Minute | ||
|
|
||
| // defaultHTTPClient returns an [*http.Client] used when the caller does not | ||
| // supply one via [option.WithHTTPClient]. It clones [http.DefaultTransport] | ||
| // 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() | ||
| transport.ResponseHeaderTimeout = defaultResponseHeaderTimeout | ||
| return &http.Client{Transport: transport} | ||
| } | ||
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
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 ifhttp.DefaultTransporthas been replaced with a non-*http.Transportimplementation (e.g., by test mocking libraries likehttpmockorgock, or custom middleware). Since this runs duringNewClient()initialization, the panic is unrecoverable. The rest of the codebase (e.g.,rawcurl.go) safely useshttp.DefaultTransportvia theRoundTripperinterface without asserting the concrete type. Using the comma-ok form of the assertion would allow a graceful fallback.Reviewed by Cursor Bugbot for commit 4d8d254. Configure here.