refactor: modify stdout reading chunk size in run_cmd_subprocess

This commit is contained in:
Paul Gauthier 2024-09-10 09:44:52 -07:00 committed by Paul Gauthier (aider)
parent ab9d9c8429
commit e84caa48a0

View file

@ -71,7 +71,7 @@ def run_cmd_subprocess(command, verbose=False):
output = []
while True:
chunk = process.stdout.read(1024) # Read in 1KB chunks
chunk = process.stdout.read(1)
if not chunk:
break
print(chunk, end="", flush=True) # Print the chunk in real-time