feat(cli): add browser_task tool - #5
Open
iscekic wants to merge 6 commits into
Open
Conversation
… deliver-the-work-described-b-eed9/ux1)
… deliver-the-work-described-b-eed9/ux2)
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.
What changed
browser_tasktool that sends a goal to the user's browser extension and returns the result in the chat.browser_tasks.enabledsetting is set, and it stays hidden when the session is not connected.Why
The browser extension already hosts a browser agent. The CLI needs a way to delegate a goal to it and receive the result, without hosting the agent in the CLI, adding a second transport, or changing mobile. The requirements demand per-profile queueing, continuation by task ID, honest settlement, reconnect recovery with dedupe, and an owner derived from authentication.
Verification
session-ingestcheck passed.test:cifailed only on files that also fail on clean main (pre-existing); advisory.chrome e2epassed.Notes for the reviewer
packages/opencode/test/kilocode/runner-tree-71132-1788260372845.test.ts. It spawns a sleep process, writes a PID marker, and throws whenKILO_TEST_RUNNER_PID_FILEis unset. Remove it before merge.