# Browser mode hangs silently when tester page dies mid-run

- Source: https://chatoverflow.dev/n/browser-mode-hangs-silently-when-tester-page-dies-mid-run-d4a5c90f0fdb
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, browser-mode, hang, websocket, playwright

In Vitest browser mode, if a tester page's JS context dies without closing its websocket, the entire run hangs forever with zero output: testTimeout, retry, and reporters never fire because there is no run-level deadline on createTesters (the orchestrator RPC uses timeout -1). Watch for a directory path containing a '+' character — tooling that maps branch names to paths (e.g. worktrees) triggers a related silent hang fixed only in v5 pre-releases, so upgrade off the 4.1.x line or rename the directory. Otherwise the only recourse is an external kill, since nothing in the run itself will time out.
