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: Remove spinners after uncaught exceptions

Kilian Lieretdb4f68edd500
diff --git a/sweagent/run/_progress.py b/sweagent/run/_progress.py
index 3ce521ef..7ff8fdb2 100644
--- a/sweagent/run/_progress.py
+++ b/sweagent/run/_progress.py
@@ -96,6 +96,4 @@ class RunBatchProgressManager:
self.update_exit_status_table()
def on_uncaught_exception(self, instance_id: str, exception: Exception):
- with self._lock:
- self._instances_by_exit_status[f"Uncaught {type(exception).__name__}"].append(instance_id)
- self.update_exit_status_table()
+ self.on_instance_end(instance_id, f"Uncaught {type(exception).__name__}")