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: Reset step count when changing trajs

Kilian Lieretb941a988f3f0
diff --git a/sweagent/run/inspector_cli.py b/sweagent/run/inspector_cli.py
index 30d6072b..9cad7ab9 100644
--- a/sweagent/run/inspector_cli.py
+++ b/sweagent/run/inspector_cli.py
@@ -64,6 +64,7 @@ class TrajectoryViewer(Static):
self.title = title
self.gold_patch = gold_patch
self.overview_stats = overview_stats
+ self.i_step = -1
self.update_content()
def compose(self) -> ComposeResult: