From ef09bf4fbdab9cd88625be0f83b28efb341cc65f Mon Sep 17 00:00:00 2001 From: KTanmay1 Date: Thu, 13 Aug 2026 18:16:08 +0530 Subject: [PATCH] Install tree in the Docker image so the agent sees its project structure `ReactTranslationAgent.get_project_tree` (RepoTransAgent/run.py:246) shells out to `tree`, but docker/Dockerfile never installs it. The failure is silent. `subprocess.run(["tree", ...])` raises FileNotFoundError before returning, so the `find` fallback below the `returncode == 0` check is unreachable, and the outer handler turns it into a string that is fed to the model as the observation: Error getting project structure: [Errno 2] No such file or directory: 'tree' This appears in every turn of every run. It matters more than a log line: get_project_tree is the only channel telling the agent which files currently exist, and slide_window_conversation (generator.py:72) keeps only the previous turn, so that listing is the agent's working record of its own progress. Confirmed across two full 20-iteration runs (C -> Python, Python -> TS); `grep -c tree docker/Dockerfile` returns 0 on main. This changes what the agent sees, and therefore scores. --- docker/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index ba7b2f9..8dec6c6 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -10,6 +10,7 @@ RUN apt-get update && apt-get install -y \ wget \ git \ vim \ + tree \ build-essential \ software-properties-common \ apt-transport-https \