Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(screen-pool): pin the playwright base image to the locked package version

nirholas87563ba38721
diff --git a/workers/agent-screen-pool/Dockerfile b/workers/agent-screen-pool/Dockerfile
index 94589d35c..0e698c7ca 100644
--- a/workers/agent-screen-pool/Dockerfile
+++ b/workers/agent-screen-pool/Dockerfile
@@ -1,14 +1,22 @@
# syntax=docker/dockerfile:1
-# agent-screen-pool — on-demand Chromium caster pool.
-# Base ships Chromium + all system deps. Pin to the playwright package version.
-FROM mcr.microsoft.com/playwright:v1.49.0-jammy
+# agent-screen-pool: on-demand Chromium caster pool.
+#
+# The base image ships Chromium plus every system dependency it needs. Its tag
+# MUST match the playwright version pinned in package-lock.json: the image bakes
+# exactly the browser build that playwright release expects, so a drifted pair
+# starts fine and then dies on the first cast with
+# "Executable doesn't exist at /ms-playwright/chromium-<rev>". Bump both together.
+FROM mcr.microsoft.com/playwright:v1.61.1-noble
WORKDIR /app
-COPY package.json ./
-RUN npm install --omit=dev
+# Lockfile-driven install so the image gets the exact playwright the base image
+# was built for, not whatever the range resolves to on build day.
+COPY package.json package-lock.json ./
+RUN npm ci --omit=dev
-COPY . .
+COPY index.js control.js task-runner.js ./
+COPY tasks ./tasks
# Chromium is baked into the base image at /ms-playwright.
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
@@ -19,7 +27,7 @@ ENV NODE_ENV=production \
FRAME_MS=700 \
JPEG_QUALITY=58
-# SCREEN_WORKER_SECRET must be supplied at runtime (-e SCREEN_WORKER_SECRET=…).
+# SCREEN_WORKER_SECRET must be supplied at runtime (-e SCREEN_WORKER_SECRET=...).
USER pwuser
CMD ["node", "index.js"]