π OpenHands: AI-Driven Development
od-runtime-client: check and remove permission TODO (#2863)
Yufan Song8cfb1be5a3a6
diff --git a/opendevin/runtime/client/client.py b/opendevin/runtime/client/client.pyindex c1ed5352fd..cdaac87dbc 100644--- a/opendevin/runtime/client/client.py+++ b/opendevin/runtime/client/client.py@@ -41,7 +41,7 @@ class RuntimeClient():loop.run_forever()def init_shell(self) -> None:- # TODO: we need to figure a way to support different users. Maybe the runtime cli should be run as root+ # run as rootself.shell = pexpect.spawn('/bin/bash', encoding='utf-8')self.shell.expect(r'[$#] ')@@ -202,11 +202,13 @@ def test_shell(message):shell.expect(r'[$#] ')output = shell.before.strip().split('\r\n', 1)[1].strip()shell.close()+ print(output)if __name__ == "__main__":# print(test_shell("ls -l"))client = RuntimeClient()# test_run_commond()# client.init_sandbox_plugins([AgentSkillsRequirement,JupyterRequirement])+ # print(test_shell("whoami"))\ No newline at end of file