Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions featurebench/infer/agents/mini_swe_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ def post_run_hook(self, container, log_file) -> bool:
)
except Exception:
pass
try:
self.cm.copy_from_container(
container,
"/root/.config/mini-swe-agent/last_mini_run.traj.json",
log_dir / "traj.json",
)
except Exception:
pass
return True

def failure_hook(self, container, log_file: Path) -> None:
Expand All @@ -122,6 +130,14 @@ def failure_hook(self, container, log_file: Path) -> None:
)
except Exception:
pass
try:
self.cm.copy_from_container(
container,
"/root/.config/mini-swe-agent/last_mini_run.traj.json",
log_dir / "traj.json",
)
except Exception:
pass

def get_run_command(self, instruction: str) -> str:
"""Get the command to run mini-swe-agent."""
Expand Down