docs/plans/2026-07-11-chrome-extension-alpha-diagnostics.md
Goal: Make the Chrome extension alpha accurately report browser automation readiness, cover its CDP bridge behavior, and generate a versioned side-loadable package.
Architecture: Keep the extension as a thin daemon client. Derive presentation state from the existing /health and /capabilities responses without changing the daemon protocol, display a small warning only when chat is ready but browser automation is not, and keep the Web Shell iframe as the primary UI. Test the pure capability reducer and the existing chrome.debugger bridge directly with mocked Chrome APIs.
Tech Stack: TypeScript, Manifest V3, Chrome extension APIs, esbuild, Vitest, jsdom.
Files:
packages/chrome-extension/src/sidepanel/capability-status.tspackages/chrome-extension/src/sidepanel/capability-status.test.tspackages/chrome-extension/config/esbuild.background.config.jsFiles:
packages/chrome-extension/public/sidepanel.jspackages/chrome-extension/public/sidepanel.htmlpackages/chrome-extension/src/sidepanel/capability-status.test.tsprobeState.Files:
packages/chrome-extension/src/background/cdp-bridge.test.tspackages/chrome-extension/src/background/cdp-bridge.tsFiles:
packages/chrome-extension/scripts/manifest-version.jspackages/chrome-extension/scripts/manifest-version.test.jspackages/chrome-extension/scripts/sync-extension.jspackages/chrome-extension/package.jsonFiles:
packages/chrome-extension/README.mdpackages/chrome-extension/docs/05-daemon-direct-architecture.mdgit diff --check.Files:
packages/chrome-extension/src/sidepanel/capability-status.tspackages/chrome-extension/src/sidepanel/capability-status.test.tspackages/chrome-extension/public/sidepanel.js/cdp runtime MCP, a pending runtime MCP, and an existing static chrome-devtools configuration that shadows the extension route./workspace/mcp only when browser automation is configured and feed the snapshot into the reducer.Files:
packages/cli/src/serve/cdp-tunnel/acceptance/fixture-server.mjspackages/cli/src/serve/cdp-tunnel/acceptance/full-tools-smoke.mjspackages/chrome-extension/package.jsonpackages/chrome-extension/README.mdFiles:
packages/chrome-extension/scripts/artifact-scan.jspackages/chrome-extension/scripts/artifact-scan.test.jspackages/chrome-extension/package.jsondist/ payloads.scan:artifacts and test:release package scripts.