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]

fixed a bug in connect

Talor Abramovich814212710dc3
diff --git a/config/commands/_connect.py b/config/commands/_connect.py
index fbe79f68..e1acb087 100755
--- a/config/commands/_connect.py
+++ b/config/commands/_connect.py
@@ -37,7 +37,8 @@ class NetcatShell(cmd.Cmd):
def _recv(self):
buffer = recv_data = self.server.recv(BUFFER_SIZE, timeout=SERVER_TIMEOUT)
while len(recv_data) == BUFFER_SIZE:
- buffer += self.server.recv(BUFFER_SIZE, timeout=SERVER_TIMEOUT)
+ recv_data = self.server.recv(BUFFER_SIZE, timeout=SERVER_TIMEOUT)
+ buffer += recv_data
return buffer.decode()