`bsk doctor` hangs indefinitely when no browser extension is connected (Windows, agent context)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- cli
Research direction
Start with AGENT_INSTALL.md and trace the bsk doctor path that auto-starts services before waiting for the browser extension. Reproduce on Windows with no extension connected, then verify that the command exits within a bounded window with the existing FAIL row and hint, while the BSK_AUTO_START=0 behavior remains prompt.
Written by the indexing model from the issue text.
Description
Environment
- bsk CLI: 0.2.1 (installed via
install.ps1from main) - OS: Windows 11 x64
- Shell: Git Bash (MSYS) and Windows PS 5.1
- Daemon protocol: 1.1
- Agent harness: WorkBuddy (
~/.workbuddy/skills)
Steps to reproduce
- Install CLI 0.2.1 on Windows before the browser extension is installed (so no browser is connected).
- Run
bsk doctor, withoutBSK_AUTO_START=0. - It prints
waiting for browser extension to connect...and then never returns.
Actual behavior
The command blocks with no further output and no exit. Two separate runs went for 4m09s and 3m54s before I killed the shell both times.
timeout 90 bsk doctor does not help on Windows: the timeout signal does not terminate bsk.exe, so the process keeps running and the shell call never comes back.
Expected behavior
doctor should be bounded. If no browser extension connects within a reasonable window (say 30s), it should print the extension connected row as FAIL with the existing hint and exit, or expose an explicit --timeout <duration> / --no-wait flag so the caller can bound it.
The existing hint (Chrome Web Store / Edge Add-ons links) is genuinely good - in this state it just never gets a chance to print.
Why this hurts agents specifically
doctor is the first command an agent runs, and AGENT_INSTALL.md tells agents to run it during setup. Agents invoke shell tools with a fixed per-call timeout and usually capture stdout, so an unbounded wait means:
- the whole agent turn is consumed with no output to reason about;
- common wrappers cannot reclaim it on Windows (
timeoutdoes not work here, and backgrounding plus polling still leaves the process alive); - the operator has to kill the shell by hand.
Additional data point
With BSK_AUTO_START=0 and the daemon already running, the same command returns immediately with the expected FAIL row and hint. So the hang looks like it lives in the "start services, then wait for the extension" path rather than in the check itself.
Workaround
BSK_AUTO_START=0 bsk doctor returns promptly once the daemon is up.
Suggestion
Bound the extension wait by default (or add a flag), and mention BSK_AUTO_START=0 in AGENT_INSTALL.md as the way to get a non-blocking run for agents.
Positive note
Once the extension was installed everything was green, and a full session lifecycle (session start -> navigate -> observe -> screenshot -> session stop) worked on the first try. Thanks for building this.
- Dominant language
- TypeScript
- Stars
- 5.7k
- Forks
- 399
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 79
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Tencent/BrowserSkill
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Tencent/BrowserSkill#305 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
Tencent/BrowserSkill#279 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Tencent/BrowserSkill#277 ·
-
Local WebSocket daemon accepts commands from any browser extension, not just BrowserSkill's own Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Tencent/BrowserSkill#273 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Tencent/BrowserSkill#272 · 2 comments ·
All issues in Tencent/BrowserSkill
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·