feat(extension): add authenticated remote gateways and background task tabs - #227
Open
lyingbug wants to merge 1 commit into
Open
feat(extension): add authenticated remote gateways and background task tabs#227lyingbug wants to merge 1 commit into
lyingbug wants to merge 1 commit into
Conversation
Merged
12 tasks
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.
Problem and behavior
A server-hosted agent needs to operate a user's already logged-in Chrome while the user continues chatting in another tab. The extension currently connects to a local daemon, and using an automation request for the chat preview can compete with a long-running command or human-help wait.
This PR adds an opt-in authenticated gateway connection and background task tabs for that mode. It addresses the extension-side portion of #50. The native CLI/daemon and published automation RPC payloads are unchanged; this does not add remote CLI transport or expose the daemon publicly.
Companion gateway and product integration: Tencent/WeKnora#3180
Changes
gateway.task_focusandgateway.task_previewmessages scoped to an existing session. Preview captures via CDP outside the automation queue, coalesces concurrent captures, and bounds the encoded JPEG width to 640 physical pixels including HiDPI displays. Focus is intended for an explicit user action.The manifest adds
tabGroupspermission for task identification. Remote mode does not resize the shared user window. The visible group label defaults to BrowserSkill; gateways may supply a boundedservice_nameduring authorization.Proposed contracts
docs/remote-extension-connection.mdspecifies the HTTP authorization exchange, credential-bearing subprotocol and optional UI messages. These are proposals for upstream review, not previously published BrowserSkill standards. The gateway authenticates users, maps each request to their existing task, rate-limits preview and closes revoked connections. No cloud gateway implementation is included in this repository.Validation
biome check .: 370 files checked, no issues.tsc --noEmitandwxt zip: passed.Rust/Windows and the unrelated DSH plugin suites were not rerun locally because this PR changes the extension and its translations only. Existing skipped extension tests remain skipped. Production gateway deployment and capacity are outside these local checks.