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: Use configured submit command instaed of "submit"

Kilian Lieret696d69c8a955
diff --git a/sweagent/agent/agents.py b/sweagent/agent/agents.py
index d3e87605..9d84851e 100644
--- a/sweagent/agent/agents.py
+++ b/sweagent/agent/agents.py
@@ -536,7 +536,7 @@ class Agent:
except Exception as e:
self.logger.debug("Failed to interrupt session before autosubmit: %s. Ignoring.", e)
try:
- observation = self._env.communicate(input="submit")
+ observation = self._env.communicate(input=self.tools.config.submit_command)
except Exception as e:
self.logger.debug("Failed to submit after error, got %s", e)
return step