mirror of
https://github.com/epiral/bb-browser.git
synced 2026-09-14 13:45:45 +08:00
b478226d74
ensureDaemonRunning() previously returned as soon as the daemon HTTP server was ready, but the Chrome extension might not have connected via SSE yet. This caused intermittent "extension not connected" (503) or "Failed to fetch" errors on the first command. Now polls /status for extensionConnected (up to 10s) after daemon starts, ensuring the full CLI → daemon → extension pipeline is ready before sending any command. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>