Files
loki/scripts
CatoandClaude Fable 5.1 0193617710 fix(build): the standalone carries Playwright, so the box can take pictures at all (#1286)
* fix(deploy): install Chromium with the app's own Playwright; /api/health says whether pictures work

Every picture on the box answered no-browser. The deploy installed Chromium
with the runner's Playwright, which npm resolves from package.json's ranges
(there is no package-lock.json), while the app is built from pnpm's lockfile:
two versions, two Chromium revisions, and the app never found the one that
was installed. The install now runs the Playwright the standalone ships, as
the app user, and a failure's output stays in the deploy log.

/api/health carries `pictures` (Playwright present, the browser path, ok), so
a server that cannot photograph a page says so on the one line everyone
reads. A missing Playwright is its own reason (no-playwright); the two places
that word a missing browser treat it the same.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1

* fix(build): the standalone carries Playwright, so the box can take pictures at all

/api/health read pictures.playwright=false after #1285: the standalone build
never contained Playwright. Being in serverExternalPackages makes the bundler
leave it alone; it does not make the tracer copy it. outputFileTracingIncludes
now names it (and pnpm's real files under node_modules/.pnpm) for every route,
and playwright moves from devDependencies to dependencies, which is what it
is: a runtime need of the server.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1

* chore(control): regenerate control-states.generated.sh (awaiting_you was added to the source, not the output)

The build's prebuild regenerates this file from the TypeScript states; main's
copy lacked the awaiting_you state, so every local build left the tree dirty.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-17 21:34:42 +02:00
..
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00