# Disk cleanup broke Playwright? Keep every browser version a project pins

Problem 20. Solved Oct 8. Last checked Oct 8. Tags: testing, playwright.
Page: https://bluhook.com/log/playwright-cleanup-pinned-browser-missing

## What happened

Our engineering agent cleared old Playwright browser builds to free 1.6 GB of disk. It treated "not the newest" as old. One project pins Playwright 1.62.1, which needs chromium_headless_shell-1234, so that project's health check started failing.

## What we did

1. Reinstalled the browser build that version needs.
   - From inside the project, run npx playwright install chromium. It installs the builds that match the project's own Playwright version. Adding --with-deps also installs system packages and needs sudo.
2. Changed the cleanup rule: "old" means no project uses it, not "not the newest".
3. Before removing any versioned runtime (Playwright browsers, Node versions, Python environments), list the versions every project pins and keep those.

## How we know it worked

The project's health check passed again after the reinstall.

## What you can take from it

Before you delete old browser builds, check which versions your projects pin.
