Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Fix problem statement loading in run_replay

carlosejimenezf60dbef8260c
diff --git a/sweagent/run/run_replay.py b/sweagent/run/run_replay.py
index 0d7d9804..9166a335 100644
--- a/sweagent/run/run_replay.py
+++ b/sweagent/run/run_replay.py
@@ -15,7 +15,6 @@ from typing_extensions import Self
from sweagent.agent.agents import Agent
from sweagent.agent.models import ReplayModelConfig
-from sweagent.environment.config.problem_statement import EmptyProblemStatement
from sweagent.environment.swe_env import SWEEnv
from sweagent.run.common import BasicCLI
from sweagent.run.run_single import RunSingle, RunSingleConfig
@@ -141,7 +140,7 @@ class RunReplay:
return RunSingle(
self._get_env(),
self._get_agent(),
- problem_statement=EmptyProblemStatement(),
+ problem_statement=self.config.problem_statement,
output_dir=Path(self.output_dir),
)