diff --git a/.changeset/ffmpeg-detect-missing-cache.md b/.changeset/ffmpeg-detect-missing-cache.md deleted file mode 100644 index d8158b7..0000000 --- a/.changeset/ffmpeg-detect-missing-cache.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@tangle-network/browser-agent-driver": patch ---- - -Fix the ffmpeg probe so a **missing** Playwright browsers cache disables video recording instead of keeping it on. The graceful degrade added in 0.35.1 only disabled `recordVideo` when the cache dir existed but had no ffmpeg; in the Tangle agent-thin sandbox `PLAYWRIGHT_BROWSERS_PATH` (`/opt/cache/npm/_playwright`) is never populated — Chromium is launched from Nix via executablePath — so the directory does not exist, and the previous "bias toward true on a missing dir" kept `recordVideo` and still crashed the run at `context.newPage()`. The probe now biases toward disabling video on any uncertainty (missing cache dir, cache without ffmpeg, or a probe error), because a wrong "available" hard-crashes the run while a wrong "unavailable" only skips the replay video; it returns true only when it positively finds an ffmpeg binary, or for the package-bundled `PLAYWRIGHT_BROWSERS_PATH=0` mode. Normal dev/CI (where `playwright install` provides ffmpeg) is unchanged. The disabled-video warning now names the resolved cache path and the driver version. diff --git a/CHANGELOG.md b/CHANGELOG.md index 819a094..2d20d64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # @tangle-network/browser-agent-driver +## 0.35.2 + +### Patch Changes + +- [#129](https://github.com/tangle-network/browser-agent-driver/pull/129) [`c85666e`](https://github.com/tangle-network/browser-agent-driver/commit/c85666edfe54fe2dc9feeaf9db5e3dd1fab6ec1c) Thanks [@AtelyPham](https://github.com/AtelyPham)! - Fix the ffmpeg probe so a **missing** Playwright browsers cache disables video recording instead of keeping it on. The graceful degrade added in 0.35.1 only disabled `recordVideo` when the cache dir existed but had no ffmpeg; in the Tangle agent-thin sandbox `PLAYWRIGHT_BROWSERS_PATH` (`/opt/cache/npm/_playwright`) is never populated — Chromium is launched from Nix via executablePath — so the directory does not exist, and the previous "bias toward true on a missing dir" kept `recordVideo` and still crashed the run at `context.newPage()`. The probe now biases toward disabling video on any uncertainty (missing cache dir, cache without ffmpeg, or a probe error), because a wrong "available" hard-crashes the run while a wrong "unavailable" only skips the replay video; it returns true only when it positively finds an ffmpeg binary, or for the package-bundled `PLAYWRIGHT_BROWSERS_PATH=0` mode. Normal dev/CI (where `playwright install` provides ffmpeg) is unchanged. The disabled-video warning now names the resolved cache path and the driver version. + ## 0.35.1 ### Patch Changes diff --git a/package.json b/package.json index a627306..6186c26 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tangle-network/browser-agent-driver", - "version": "0.35.1", + "version": "0.35.2", "description": "LLM-driven browser agent and bad CLI for UI automation, testing, and evaluation", "packageManager": "pnpm@10.33.3", "publishConfig": {