Component downloads can't be controlled: `warmup` always installs Chromium (ignores its flags and `--help`), there's no opt-out for lazy browser/embeddings installs, and `init`/`doctor` can fetch `playwright@latest` via npx

Open
#672 3 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

@nako-ruru is already working on this.

Since Nov 26, 2026.

  • #724 by @nako-ruru — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
node.js, typescript
Domain
cli, tooling

Research direction

Start with src/cli/warmup.ts, src/fetch/browser-acquire.ts, and src/cli/doctor.ts to trace component selection, on-demand installs, and Playwright version checks. Run the reported warmup and init/doctor commands to establish current behavior. Done means component flags and help work without unintended downloads, opt-out behavior is explicit, doctor checks the bundled version offline, and size messages reflect disk use.

Written by the indexing model from the issue text.

Description

area:dx bug

What happened?

I'm trying to run wigolo with predictable disk and network use (for example search only, no browser). As far as I can tell, 0.3.1 has no way to do that. Four specific problems:

1. wigolo warmup ignores component flags, and warmup --help starts a download

In src/cli/warmup.ts, runWarmup() calls installPlaywright() unconditionally as its first step. The component flags are only checked after that. So:

  • wigolo warmup --embeddings (or --reranker) installs Chromium first and then the requested component.
  • --browser, which wigolo --help lists (warmup [--all|--browser|--reranker|--embeddings]), is never read. It behaves the same as no flag.
  • wigolo warmup --help / -h doesn't print help. parseCommand() only recognises help aliases in the first position, so runWarmup(["--help"]) runs and starts the Chromium download. In my test, warmup --browser took about 132 s on a normal connection.

Expected: each flag selects its component(s), unknown flags are rejected, and warmup --help prints usage.

2. No supported way to turn off lazy browser or embeddings installs
  • The browser: BrowserAcquirer.ensureBrowser() (src/fetch/browser-acquire.ts) starts a background runWarmup(["--browser"]) the first time any request escalates to the browser tier. WIGOLO_BROWSER_INSTALL_WAIT_MS / _RETRY_MS only change the timing. A plain search is enough to trigger it, because result-page enrichment escalates on a 403. From a fresh data dir, the first search logged:
    "msg":"anti-bot challenge: escalating to browser (tls tier disabled)" … "httpStatus":403
    "msg":"installing browser engine (first use, ~100-150MB)…"
    [wigolo warmup] Installing browser engine (chromium)...
    "msg":"loading embedding model (first use — downloads ~30MB if not cached)"
    
    The only way I found to stop it was to point PLAYWRIGHT_DOWNLOAD_HOST at an unreachable address. It then retried with errors on later escalations.
  • Embeddings load (and download) on first use from search and cache paths. There's no switch to run without the semantic index.

Request: an explicit setting such as WIGOLO_AUTO_INSTALL=0 (or WIGOLO_BROWSER=off and WIGOLO_EMBEDDINGS=off). When it's set, wigolo would never download on demand and would return the existing browser_engine_unavailable error or a lexical-only result instead.

3. init --no-warmup and doctor run npx playwright --version

checkPlaywright() in src/cli/doctor.ts runs spawnSync("npx", ["playwright", "--version"]). runDoctorColdChecks() calls it, and init runs those checks as well, so this happens even with init --no-warmup ("Skip ALL component downloads"). With wigolo installed globally or as the single-file binary, there's no playwright bin on PATH, so npx downloads the latest playwright from the registry into the npm cache. After init --no-warmup + doctor on a clean home directory:

<home>/.npm/_npx/<hash>/node_modules/playwright   version 1.64.1

wigolo 0.3.1 depends on playwright 1.60.0. doctor then reports Installation: installed (v1.64.1), which is the npx copy, not the version wigolo actually uses.

Expected: read the version from the bundled package (playwright/package.json via createRequire) without touching the network. #653 suggested the same thing. That fix raised the timeout, but the npx call is still there.

4. Size estimates in messages are well below actual disk use
Message Measured on disk after install (macOS arm64)
"installing browser engine (first use, ~100-150MB)" ms-playwright/ = 534 MB (chromium-1223 341 MB + chromium_headless_shell-1223 190 MB + ffmpeg 2.5 MB)
"downloads ~30MB if not cached" (embeddings) <data-dir>/fastembed/ = 64 MB

The download size may be smaller than the unpacked size, but users budget for disk use, so the on-disk figure (or both) would be more useful.

Command / tool call

wigolo warmup --embeddings, wigolo warmup --help, wigolo init --no-warmup --non-interactive, wigolo doctor, first POST /v1/search

wigolo version

0.3.1

OS + Node version

macOS 26.5.2 (arm64) · single-file binary wigolo-macos-arm64 and the npm package on Node 24.15.0

Dominant language
TypeScript
Stars
5.4k
Forks
445
Avg merge
20h 41m
Merged PRs (30d)
85

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from KnockOutEZ/wigolo

All issues in KnockOutEZ/wigolo

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.