fix: drop agent-browser --with-deps, install browser libs directly#70
Merged
Merged
Conversation
agent-browser install --with-deps shells out to `sudo apt-get`, which doesn't exist on python:3.12-slim, so the Docker build fails with ENOENT. Drop --with-deps and instead install the system libraries agent-browser wanted (libxcb-shm0, libpangocairo-1.0-0, libcairo-gobject2, libgdk-pixbuf-2.0-0, libfreetype6, libatspi2.0-0, fonts-noto-color-emoji, fonts-noto-cjk, fonts-freefont-ttf) directly via apt. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
quick-sort
approved these changes
Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mainis red. The failing step isagent-browser install --with-deps, which runssudo apt-get update/sudo apt-get install— butpython:3.12-slimhas nosudo, so it dies withNo such file or directory (os error 2).git lfs install --system. The failure only surfaced after chore: install git-lfs in the Docker image #68 because that PR touched the bigRUNlayer (addedgit-lfsto the apt line), busting the Docker cache — so theagent-browserstep actually ran for the first time. PR fix: route AskUserQuestion/ExitPlanMode replies via can_use_tool #67 was green purely on a cached layer.--with-depsand install the browser libraries ourselves. The added packages are exactly the onesagent-browser --with-depstries to install (taken from the failed-build log).Test plan
agent-browser install --with-depsremoved; libs it wanted are now in the apt listBuild & Push Docker Imagegoes greenCloses #70