You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add unzip utility to base sandbox container image #9460
In workflow run 43378309925 (Code agent on Issue #3), the agent attempted to install Chromium for test execution using npx puppeteer browsers install chrome. The command threw an error: Extraction failed: no zip archiver is available. Install unzip (or tar.exe/Powershell on Windows), or add the optional yauzl dependency. Inspection of the container revealed that tar, gzip, bzip2, and xz were available on PATH, but unzip was missing from images/sandbox/Containerfile. Because the sandbox runs as unprivileged user sandbox (UID 998) with read-only root filesystems, the agent could not run apt-get install unzip. The agent spent multiple tool turns inspecting PATH permissions and writing a custom Python-based CLI polyfill at /sandbox/.venv/bin/unzip implementing -o and -d flags via Python's zipfile module before Chrome could be extracted.
What could go better
Standard archive utilities like unzip are expected in Linux container environments and are required by common Node.js toolchains (such as @puppeteer/browsers on Linux, which exclusively searches for unzip). Missing fundamental utilities forces agents to spend unnecessary reasoning turns diagnosing missing binaries and writing custom polyfills, wasting token budget and risking task failure if the agent fails to polyfill the tool.
Proposed change
In images/sandbox/Containerfile, update the initial package installation step to include unzip alongside jq:
Build the sandbox image from images/sandbox/Containerfile and verify that command -v unzip exits with 0. Running npx @puppeteer/browsers install chrome@stable inside the container must successfully unpack the browser archive without raising archiver errors or requiring synthetic polyfills.
Related issues checked
Searched: unzip sandbox Containerfile; zip archiver sandbox; puppeteer chrome sandbox
No overlapping issues found.
Activity