Skip to content

Add refresh-on-profile-update as an optional param for browser pools - #194

Merged
chruffins merged 1 commit into
mainfrom
autorefresh
Jul 9, 2026
Merged

Add refresh-on-profile-update as an optional param for browser pools#194
chruffins merged 1 commit into
mainfrom
autorefresh

Conversation

@chruffins

@chruffins chruffins commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Add --refresh-on-profile-update flag to kernel browser-pools create and kernel browser-pools update, plus bump kernel-go-sdk to v0.75.0 (which provides the RefreshOnProfileUpdate field on pool params and response types).

The new flag flushes idle browser instances when the pool's profile is updated. It's forwarded to the SDK as an explicit optional field (guarded by BoolFlag.Set) so omitting the flag on the command line leaves the SDK field unset and lets the server decide the default.

Changes

  • cmd/browser_pools.go — Add RefreshOnProfileUpdate BoolFlag to both BrowserPoolsCreateInput and BrowserPoolsUpdateInput, wire it through Create() / Update() to params.RefreshOnProfileUpdate, register the --refresh-on-profile-update CLI flag on both commands, and display the setting in kernel browser-pools get output.
  • cmd/browser_pools_test.go — Add tests for:
    • Create with RefreshOnProfileUpdate set to true
    • Update with RefreshOnProfileUpdate set to false
    • Unset flag leaves the SDK field un-validated (server default)
    • ProfileID + RefreshOnProfileUpdate compose correctly when both are provided
  • README.md — Document the new flag in the browser-pools reference section.
  • go.mod / go.sum — Bump kernel-go-sdk from v0.72.0 to v0.75.0.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgolang/​github.com/​kernel/​kernel-go-sdk@​v0.72.0 ⏵ v0.75.072 +1100100100100

View full report

@chruffins
chruffins requested a review from hiroTamada July 9, 2026 14:44
Comment thread cmd/browser_pools.go
@chruffins
chruffins merged commit 88bc79e into main Jul 9, 2026
6 checks passed
@chruffins
chruffins deleted the autorefresh branch July 9, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants