Skip to content

Add --query flag to kernel browsers list#126

Merged
dcruzeneil2 merged 1 commit intomainfrom
neil/kernel-1036-cli-update-with-query-param
Feb 27, 2026
Merged

Add --query flag to kernel browsers list#126
dcruzeneil2 merged 1 commit intomainfrom
neil/kernel-1036-cli-update-with-query-param

Conversation

@dcruzeneil2
Copy link
Contributor

@dcruzeneil2 dcruzeneil2 commented Feb 27, 2026

And related test


Note

Low Risk
Low risk: adds an optional list filter flag and passes it through to the SDK, with a small unit test verifying param wiring.

Overview
Adds a new --query flag to kernel browsers list and threads it through BrowsersListInput into kernel.BrowserListParams.Query so list results can be searched (session/profile/proxy IDs).

Adds a unit test ensuring the query value is passed to the underlying BrowsersService.List call.

Written by Cursor Bugbot for commit 64b55db. This will update automatically on new commits. Configure here.

Copy link
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.

looks good, one small nit


var captured kernel.BrowserListParams
fake := &FakeBrowsersService{
ListFunc: func(ctx context.Context, query kernel.BrowserListParams, opts ...option.RequestOption) (*pagination.OffsetPagination[kernel.BrowserListResponse], error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: the other list tests in this file name this parameter params — worth matching for consistency

@dcruzeneil2 dcruzeneil2 merged commit 921d465 into main Feb 27, 2026
2 checks passed
@dcruzeneil2 dcruzeneil2 deleted the neil/kernel-1036-cli-update-with-query-param branch February 27, 2026 17:22
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