Skip to content

fix: drop agent-browser --with-deps, install browser libs directly#70

Merged
quick-sort merged 1 commit into
mainfrom
quick-sort/fix/dockerfile-drop-with-deps
Jun 22, 2026
Merged

fix: drop agent-browser --with-deps, install browser libs directly#70
quick-sort merged 1 commit into
mainfrom
quick-sort/fix/dockerfile-drop-with-deps

Conversation

@hilr

@hilr hilr commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • The Docker build on main is red. The failing step is agent-browser install --with-deps, which runs sudo apt-get update / sudo apt-get install — but python:3.12-slim has no sudo, so it dies with No such file or directory (os error 2).
  • This is not caused by git-lfs (PR chore: install git-lfs in the Docker image #68). git-lfs installs and initializes fine; the build sails past git lfs install --system. The failure only surfaced after chore: install git-lfs in the Docker image #68 because that PR touched the big RUN layer (added git-lfs to the apt line), busting the Docker cache — so the agent-browser step actually ran for the first time. PR fix: route AskUserQuestion/ExitPlanMode replies via can_use_tool #67 was green purely on a cached layer.
  • Fix: drop --with-deps and install the browser libraries ourselves. The added packages are exactly the ones agent-browser --with-deps tries to install (taken from the failed-build log).

Test plan

  • agent-browser install --with-deps removed; libs it wanted are now in the apt list
  • CI Build & Push Docker Image goes green

Closes #70

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 quick-sort merged commit c9bff5c into main Jun 22, 2026
1 check passed
@quick-sort quick-sort deleted the quick-sort/fix/dockerfile-drop-with-deps branch June 22, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants