Skip to content

fix(claude-code): limit Playwright browser download to Chromium only - #79

Merged
gatezh merged 1 commit into
masterfrom
fix-playwright-browser-downloads
Apr 14, 2026
Merged

gatezh merged 1 commit into
masterfrom
fix-playwright-browser-downloads

Conversation

@gatezh

@gatezh gatezh commented Apr 14, 2026

Copy link
Copy Markdown
Owner

What

Append chromium to all npx playwright install --only-shell commands so only the Chromium headless shell is downloaded.

Why

--only-shell controls the browser variant (headless shell vs full), not which browsers are installed. Without a browser argument, Playwright downloads all three (Chromium, Firefox, WebKit — ~290 MiB on ARM64), wasting ~184 MiB on browsers that are never used.

Changes

  • devcontainer.json — add chromium arg to updateContentCommand
  • claude-sandbox/devcontainer.json — add chromium arg to postCreateCommand
  • Dockerfile — update the comment documenting the expected install command
  • README.md — update all three code/diagram references

Closes #78

…78)

`--only-shell` controls the variant (headless shell vs full browser) but
does not limit which browsers get installed. Without specifying `chromium`,
all three browsers are downloaded (~290 MiB), wasting ~184 MiB on Firefox
and WebKit that are never used.
@gatezh
gatezh merged commit b3ecfa5 into master Apr 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npx playwright install --only-shell downloads all browsers instead of just Chromium

1 participant