Repository navigation
Add browsers live-view create command - #318
Closed
masnwilliams wants to merge 3 commits into
Closed
masnwilliams wants to merge 3 commits into
masnwilliams wants to merge 3 commits into
Conversation
masnwilliams
marked this pull request as ready for review
November 12, 2026 20:03
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8576205. Configure here.
Contributor
Author
|
Superseded by #317, the coverage bot's v0.148.0 update, which adds |
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.

Summary
Adds
kernel browsers live-view create <id-or-name>, which callsPOST /browsers/{id_or_name}/live_viewto mint a live view URL scoped toreadorcontrol.--scope read|control: omitted means the API default (read). Other values are rejected before any request.--ttl <seconds>: omitted means the URL stays valid until the browser is deleted. Negative values are rejected.-o json: prints the raw API response (url,scope, andexpires_atwhen set).The URL authorizes only the live view (not CDP, WebDriver, etc.) and cannot be revoked before it expires, so the help text says to treat it as a credential. For the same reason the request is sent with retries disabled: a retry after a lost response would mint a second URL that can't be revoked.
Bumps the Go SDK to v0.148.0, the first release with
client.Browsers.LiveView.New.Testing
--scope/--ttl/-ovalues, and a test that a 500 response is not retried.go vet ./...andgo test ./...pass on v0.148.0.read(no expiry) andcontrolwith--ttl 600(expires_atset); a headless browser returnslive_view_unavailable;--scope writeis rejected locally.