Detect host-native browser tools before offering the isolated local Chromium fallback, add a common readiness fixture, harden managed browser startup, and verify standards installs expose one canonical QA skill.
12 KiB
Browser provider setup and readiness
Browser setup is optional and consented. The Agent Skills installer owns skill placement; this flow never enrolls another host. At onboarding, offer this flow only when the user asks to configure browser capabilities now. Otherwise run it just in time when a selected workflow first needs interactive browser evidence.
Routing flow
- Identify the active host and provider from callable tools in the current session, not from unrelated installed binaries, parent-application environment variables, documentation, or guessed host names. Inherited
CODEX_*, bundle identifiers, and similar process metadata never override the actual agent/tool surface. - Show the detected provider, what user-controlled setup it requires, and the GStack local-browser fallback.
- Ask whether to use the host-native provider, set up GStack local browser, continue without browser evidence, or defer. A selection is not permission to install another product or attach private browser state.
- For a host-native selection, follow the matching provider section below. Never install an extension, grant site access, sign in, add an MCP server, attach an existing profile, or change host settings without the user's explicit action.
- After setup, run the common readiness journey. Tool names or metadata alone are insufficient evidence.
- If the journey fails, report
needs-user-action,unavailable, orfailedwith the exact observed cause and offer the local GStack browser. Do not silently fall back.
Provider states
available: the current session exposes callable navigation, reading, and interaction tools, but readiness has not yet been proven.needs-user-action: the host has a documented provider, but the user must enable, open, approve, or connect it.ready: the selected provider passed the common local readiness journey in this session.unavailable: no suitable interactive tool is exposed in the current session.failed: a callable provider attempted the readiness journey and failed; include the exact failing step.
Never report ready merely because a browser binary, CLI, plugin, extension, MCP name, settings entry, or documentation exists. Present one provider decision, then continue through the selected path. Do not run ./setup; it is not a GStack 2 browser setup command.
Common local readiness journey
Start the dependency-free fixture from this skill root with:
node references/support/browser-provider-smoke.mjs
The process prints one JSON line containing a loopback URL and remains alive. Through the selected browser provider:
- Open that exact URL.
- Verify the heading
GStack browser readiness. - Click
Complete readiness check. - Verify the page status becomes
READY. - When supported, confirm the console message
gstack-browser-readiness:readyand the successfulPOST /proofrequest. - Stop the fixture process and confirm it releases its listener.
Mark the provider ready only after navigation, page reading, and interaction all succeed. The fixture binds to 127.0.0.1, uses a per-run random token, sends no repository data, and does not persist cookies or credentials.
Claude in Chrome
Classification: native-extension
Setup:
- Explain that Claude in Chrome requires Google Chrome, a paid Claude plan, the user-installed extension, the same signed-in Claude account, granted site permissions, and an enabled connector.
- Ask whether the user wants to configure it now. Never install the extension, grant permissions, enable a connector, sign in, or attach a Chrome profile for them.
- After the user completes setup, retry the active host tab/context discovery rather than treating the presence of the Claude CLI as browser readiness.
Readiness evidence:
- The Claude in Chrome tool surface is visible to the active Claude Code session.
- Tab/context discovery returns an attached browser peer instead of a missing-extension or no-peer error.
- The common local readiness journey completes through the Claude browser tools.
If unavailable: Offer GStack local browser or continue without browser evidence; do not substitute a different extension or remote browser.
Codex built-in browser
Classification: native-in-app
Setup:
- Explain that the built-in browser is a ChatGPT desktop-app surface on macOS and Windows and uses its own browser state.
- Ask the user to open it from the Work/Codex toolbar (Command-Shift-B on macOS or Control-Shift-B on Windows) and approve the test site when prompted.
- Do not infer readiness from the Codex CLI or skill installation; the active session must expose an in-app browser provider.
Readiness evidence:
- Active browser discovery returns the in-app browser provider instead of an empty provider list.
- A tab can be created or selected after the user opens the browser surface.
- The common local readiness journey completes through the Codex browser tools.
If unavailable: Offer GStack local browser or defer browser work; do not claim that restarting a browser-less session will create the missing host capability.
Gemini CLI browser agent
Classification: native-agent
Setup:
- Explain that Gemini CLI has an experimental bundled
browser_agent, disabled by default, which requires a recent local Chrome and displays a first-run consent dialog. - Ask whether the user wants to enable it themselves. Never edit Gemini settings, accept its consent dialog, attach an existing Chrome session, or infer readiness from the Gemini executable.
- Prefer Gemini isolated browser mode for public or localhost QA unless the user explicitly needs and approves an existing signed-in browser session.
Readiness evidence:
- The active Gemini session exposes the callable
browser_agenttool rather than onlygoogle_web_searchorweb_fetch. - The user has completed Gemini's own enablement and one-time consent without GStack acting on their behalf.
- The common local readiness journey completes through the Gemini browser agent.
If unavailable: Offer the consented GStack local browser, evidence-limited fetch/search, or deferral; do not install a browser MCP because Gemini already bundles its experimental browser agent.
Cursor interactive browser provider
Classification: native-mcp
Setup:
- Inspect the active Cursor tool surface for an interactive provider such as Chrome DevTools; Cursor CLI presence and parent-process environment variables are not provider evidence.
- If an interactive provider is exposed, explain its current session/profile boundary and ask whether to use it. Never add or approve an MCP server, extension, or browser profile for the user.
- If no interactive provider is exposed in this Cursor session, offer GStack local browser rather than assuming every Cursor installation has the same browser tools.
Readiness evidence:
- The active Cursor session exposes callable navigation, page-reading, and interaction tools and returns a live browser peer.
- The selected browser session does not require silently attaching the user's personal profile.
- The common local readiness journey completes through the discovered Cursor provider.
If unavailable: Offer GStack local browser, evidence-limited web access, or deferral; do not turn one machine's configured Chrome DevTools MCP into a universal Cursor capability claim.
GitHub Copilot and VS Code integrated browser
Classification: native-in-app
Setup:
- Explain that current VS Code can expose built-in browser agent tools, subject to the
workbench.browser.enableChatToolsorganization setting and the user's active tool selection. - Ask the user to enable the Built-in > Browser tools in the active agent session when they want to use them. Never change VS Code or organization settings for them.
- Prefer an agent-created isolated browser page; sharing an existing browser page or its signed-in state requires the user's explicit action.
Readiness evidence:
- The active Copilot/VS Code agent session exposes callable browser tools such as page navigation, reading, screenshot, and interaction.
- An isolated browser page can be opened without silently sharing an existing tab or cookie store.
- The common local readiness journey completes through the VS Code integrated browser tools.
If unavailable: Offer GStack local browser or defer; distinguish organization-policy disablement from a transient missing browser tab.
OpenClaw browser plugin
Classification: native-plugin
Setup:
- Explain that OpenClaw includes a browser plugin with a dedicated managed profile, while its
userprofile can attach to an existing browser session. - Inspect the active OpenClaw tool policy for the callable browser tool. Never edit
plugins.allow, enable the plugin, or attach theuserprofile without explicit user action. - Prefer the isolated managed profile for public and localhost QA; use an existing signed-in profile only when the user explicitly selects it.
Readiness evidence:
- The active OpenClaw agent exposes the browser tool after its plugin and tool-policy checks.
- Browser doctor/status and tab discovery succeed for the explicitly selected profile.
- The common local readiness journey completes through OpenClaw browser actions.
If unavailable: Offer GStack local browser or defer; do not silently repair OpenClaw plugin policy or attach a personal browser profile.
Kimi Code
Classification: no-native-automation
Setup:
- Explain that Kimi Code loads standard Agent Skills and provides WebSearch/FetchURL when configured, but does not currently document a native interactive browser-automation harness.
- Do not describe
kimi webas browser automation: it is the browser-based user interface for the Kimi session. - Offer GStack local browser when interactive navigation, clicking, screenshots, console, or network evidence is required.
Readiness evidence:
- Kimi discovers the canonical GStack skills through its standard Agent Skills directories.
- Fetch/search-only work may use Kimi host tools when their limitations satisfy the task.
- Interactive browser readiness is tested against GStack local browser, not
kimi web.
If unavailable: Continue with fetch/search-only evidence or offer the consented GStack local browser; never silently add a browser MCP or alternate backend.
Pi coding agent
Classification: extension-only
Setup:
- Explain that Pi intentionally has no core interactive browser tool; browser automation is available only through optional third-party packages or an already exposed host tool.
- Inspect the active Pi tool surface. Never install a Pi package, run its browser installer, or treat a package listing as a live browser peer.
- Offer GStack local browser when no already-configured interactive provider is callable.
Readiness evidence:
- An explicitly user-installed Pi browser extension exposes a callable browser tool in the active session.
- The extension returns a live isolated session without triggering an unapproved Chromium download or profile attachment.
- The common local readiness journey completes through that active tool.
If unavailable: Offer GStack local browser, evidence-limited continuation, or deferral; never recommend or install a third-party Pi browser package automatically.
GStack local browser fallback
GStack's existing local Chromium/Playwright implementation remains the only bundled browser backend. Follow RUNTIME.md for preview and separate install consent, run gstack doctor, then run the same readiness journey with the browse launcher. Do not run ./setup, add a cloud browser, remote provider, alternate local backend, or personal-profile attachment as a fallback.