Repository navigation
chore: ignore the Playwright CLI browser profile directory - #4361
Conversation
The playwright-cli skill writes a persistent Chromium profile to .playwright-cli/ at the repo root, so every session that drives a browser leaves it sitting in git status as untracked noise.
|
Verdict: Approve This adds one ignore rule so the persistent browser profile the Playwright skill drops in the repo root stops showing up in One thing worth a thought before merge: the pattern is a bit wider than the directory it's aimed at, so a future Playwright config file with a similar name would be silently ignored too. Narrowing it to the exact directory keeps the fix and removes that risk. Not blocking. Real-world evidenceN/A — repo-config-only change, no runnable surface. The PR's own 🔍 Technical details🟢 Minor —
Strengths
|
|
Good catch on the unanchored pattern — tightened to 🔍 Technical detailsTrailing slash restricts the match to directories, leading slash anchors it to the repo root. Both behaviours verified: |
Follow-up to amd#4361, which merged before its review feedback could be applied. The rule it added, `.playwright*`, is wider than the thing it was aimed at: it matches at any depth and catches files as well as directories, so a future `.playwright.config.ts` would be silently untracked and nobody would notice until it went missing. This narrows it to directories at the repo root, which is the only place the Playwright CLI actually writes. ### Test plan - [x] Still ignores the real profile directory: ``` $ git check-ignore -v .playwright-cli .gitignore:321:/.playwright*/ .playwright-cli ``` - [x] No longer swallows a config file: ``` $ git check-ignore -v .playwright.config.ts || echo "NOT IGNORED (correct)" NOT IGNORED (correct) ```
Driving a browser from this repo used to leave
.playwright-cli/sitting ingit statusforever — a persistent Chromium profile the playwright-cli skill writes to the repo root. It was never meant to be committed, and an untracked directory that never goes away trains people to ignoregit statusnoise. Now it's ignored.Test plan
git statusis clean with the directory present.