From 71b4a6b18e74cd18584135ae6626bda1f2dd8f49 Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Wed, 27 May 2026 05:25:22 -0700 Subject: [PATCH] fix(docker): install python-is-python3 so bare `python` resolves in containers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Debian 13 ships only `python3` — there's no `/usr/bin/python` symlink. When the agent emits bash commands using bare `python` (which models do frequently from their training prior), every such call fails with: /usr/bin/bash: python: command not found Tool terminal returned error … exit_code 127 The agent then retries with different approaches, sessions take longer, and agent.log fills with WARNING noise. `python-is-python3` is the standard Debian package that drops a `/usr/bin/python → python3` symlink. ~30 KB, zero behavior change for anything calling `python3` directly; transparent fix for everything else. Fixes #33178. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ce41fb69ab7..e15fd3dda5a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ ENV PLAYWRIGHT_BROWSERS_PATH=/opt/hermes/.playwright # hermes process, the dashboard, and per-profile gateways. RUN apt-get update && \ apt-get install -y --no-install-recommends \ - ca-certificates curl python3 ripgrep ffmpeg gcc python3-dev libffi-dev procps git openssh-client docker-cli xz-utils && \ + ca-certificates curl python3 python-is-python3 ripgrep ffmpeg gcc python3-dev libffi-dev procps git openssh-client docker-cli xz-utils && \ rm -rf /var/lib/apt/lists/* # ---------- s6-overlay install ----------