diff --git a/metagpt/tools/libs/terminal.py b/metagpt/tools/libs/terminal.py index e8b3043ab..dc395e89b 100644 --- a/metagpt/tools/libs/terminal.py +++ b/metagpt/tools/libs/terminal.py @@ -22,11 +22,13 @@ class Terminal: # Start a persistent shell process self.process = subprocess.Popen( self.shell_command, + shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, bufsize=1, # Line buffered + executable="/bin/bash" ) self.stdout_queue = Queue()