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: Submitting ' ' in human mode crashes container (#749)
Kilian Lieret14d8ff3d5acd
diff --git a/sweagent/agent/models.py b/sweagent/agent/models.pyindex 77a323ff..8b2729f5 100644--- a/sweagent/agent/models.py+++ b/sweagent/agent/models.py@@ -850,7 +850,7 @@ class HumanModel(BaseModel):Logic for handling user input to pass to SWEEnv"""action = input(action_prompt)- command_name = action.split()[0] if action else ""+ command_name = action.split()[0] if action.strip() else ""# Special handling for multi-line input actions (i.e. edit)if command_name in self.multi_line_command_endings: