feat(browser): add strict Chrome Tab Group background carrier#60
Open
CHENXCHEN wants to merge 1 commit into
Open
feat(browser): add strict Chrome Tab Group background carrier#60CHENXCHEN wants to merge 1 commit into
CHENXCHEN wants to merge 1 commit into
Conversation
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 an opt-in Chrome Tab Group browser carrier for AutoCLI browser commands.
The existing
automation-windowbehavior remains the default. Users can explicitly enabletab-group-backgroundto run browser commands inside a Chrome Tab Group without creating a new visible Chrome window or stealing the current active tab.This PR also adds per-adapter browser carrier configuration so custom local adapters can opt into the new mode without requiring global config.
Why
The current default browser automation flow can create visible automation windows. During repeated or consecutive commands, this may leave multiple separate Chrome windows and interrupt the user's normal browser workflow.
Using a Chrome Tab Group gives AutoCLI a better background carrier: tabs can be grouped, collapsed, reused, and cleaned up after an idle timeout. This keeps automation work contained behind the user's current browsing session instead of scattering unmanaged windows across the desktop.
The goal is to reduce user disruption while preserving the existing default behavior for compatibility.
Technical Details
automation-windowremains the defaulttab-group-backgroundis the new strict background mode~/.autocli/config.jsonbrowserobjectAutoCLI-${groupName}.tab-group-backgroundis selected without a validgroupName, it defaults todefault, producingAutoCLI-default.tabs selectis unsupported in strict background mode because it would require activating a tab.Usage
Global config:
Environment variables:
Per-adapter config:
Existing adapter syntax remains compatible:
Test Plan
cargo test -p autocli-browser -p autocli-discovery -p autocli-corecargo check -p autoclipnpm exec vitest runpnpm typecheckpnpm buildgit diff --checkAUTOCLI_BROWSER_CARRIER=tab-group-background AUTOCLI_BROWSER_GROUP_NAME=work AUTOCLI_BROWSER_GROUP_IDLE_TIMEOUT=30 autocli read https://example.com --format textexample.comAutoCLI-workgroup was created collapsedKnown Quirks / Pitfalls
"AutoCLI" started debugging this browser) while commands are attached through the debugger API. This is Chrome behavior, not a new window or tab activation.