[object Object]

← back to Designer Wallcoverings

ensure-import-app: install browsers via APP-LOCAL playwright cli — npx resolved a different build (installed shell-1228 while app pins shell-1200), so the heal never healed

d44bb4b1ce7aa020ee4a7e429435de687250fd78 · 2026-07-13 10:08:34 -0700 · Steve

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Files touched

Diff

commit d44bb4b1ce7aa020ee4a7e429435de687250fd78
Author: Steve <steve@designerwallcoverings.com>
Date:   Mon Jul 13 10:08:34 2026 -0700

    ensure-import-app: install browsers via APP-LOCAL playwright cli — npx resolved a different build (installed shell-1228 while app pins shell-1200), so the heal never healed
    
    Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---
 .../ImportNewSkufromURL/scripts/ensure-import-app.sh       | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/DW-Programming/ImportNewSkufromURL/scripts/ensure-import-app.sh b/DW-Programming/ImportNewSkufromURL/scripts/ensure-import-app.sh
index 3a675098..4cb48899 100755
--- a/DW-Programming/ImportNewSkufromURL/scripts/ensure-import-app.sh
+++ b/DW-Programming/ImportNewSkufromURL/scripts/ensure-import-app.sh
@@ -20,13 +20,13 @@ alive() {
 }
 
 # ENV HEAL: scrapes die with "Browser launch failed: Executable doesn't exist"
-# when a playwright update outpaces its downloaded browsers (bit us 2026-07-13,
-# burning items as failed while the app itself was healthy). Idempotent + quick
-# when binaries already exist.
-if ! ls "$HOME/Library/Caches/ms-playwright"/chromium_headless_shell-*/chrome-headless-shell-mac-*/chrome-headless-shell >/dev/null 2>&1; then
-  echo "[ensure-import-app] playwright headless-shell missing — installing"
-  (cd "$APP_DIR" && npx playwright install chromium chromium-headless-shell >/dev/null 2>&1)
-fi
+# when the app's playwright-core lacks its pinned browser revision (bit us
+# 2026-07-13). MUST use the APP-LOCAL cli — `npx playwright` can resolve a
+# different playwright build whose browsers.json pins different revisions,
+# installing binaries the app never asks for (that's how shell-1228 landed
+# while the app wanted shell-1200). The local cli reads the local browsers.json
+# and is a fast no-op when the pinned revision is already present.
+(cd "$APP_DIR" && node node_modules/playwright/cli.js install chromium chromium-headless-shell >/dev/null 2>&1)
 
 alive && exit 0
 

← 32393d92 auto-save: 2026-07-13T09:54:06 (4 files) — pending-approval/  ·  back to Designer Wallcoverings  ·  extraction goes LOCAL-FIRST (EXTRACT_PREFER_LOCAL=1, hermes3 b20f45ae →