From 79eb31c588966e109eb651ca1dafa824711f248f Mon Sep 17 00:00:00 2001 From: VascoSch92 Date: Mon, 22 Jun 2026 15:39:45 +0200 Subject: [PATCH] Fix conda activation in SWE-bench prompts: source absolute path The activation line used ./opt/miniconda3/... which is a relative path (resolved against the repo cwd, where it does not exist) and executes the script instead of sourcing it, so it cannot activate testbed in the agent's shell. Use 'source /opt/miniconda3/...' as the swefficiency prompt already does. --- benchmarks/swebench/prompts/default.j2 | 2 +- benchmarks/swebenchmultilingual/prompts/default.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmarks/swebench/prompts/default.j2 b/benchmarks/swebench/prompts/default.j2 index ecdef8e89..750ce2026 100644 --- a/benchmarks/swebench/prompts/default.j2 +++ b/benchmarks/swebench/prompts/default.j2 @@ -20,7 +20,7 @@ Phase 1. READING: read the problem and reword it in clearer terms Phase 2. RUNNING: install and run the tests on the repository 2.1 Activate the environment by running - ./opt/miniconda3/etc/profile.d/conda.sh ; conda activate testbed + source /opt/miniconda3/etc/profile.d/conda.sh ; conda activate testbed 2.2 Follow the readme 2.3 Install the environment and anything needed 2.4 Iterate and figure out how to run the tests diff --git a/benchmarks/swebenchmultilingual/prompts/default.j2 b/benchmarks/swebenchmultilingual/prompts/default.j2 index ecdef8e89..750ce2026 100644 --- a/benchmarks/swebenchmultilingual/prompts/default.j2 +++ b/benchmarks/swebenchmultilingual/prompts/default.j2 @@ -20,7 +20,7 @@ Phase 1. READING: read the problem and reword it in clearer terms Phase 2. RUNNING: install and run the tests on the repository 2.1 Activate the environment by running - ./opt/miniconda3/etc/profile.d/conda.sh ; conda activate testbed + source /opt/miniconda3/etc/profile.d/conda.sh ; conda activate testbed 2.2 Follow the readme 2.3 Install the environment and anything needed 2.4 Iterate and figure out how to run the tests