feat: Implement line count for command output in chat

This commit is contained in:
Paul Gauthier (aider) 2024-11-21 06:23:34 -08:00
parent 443acbe4b5
commit cbd35b0e87

View file

@ -2064,5 +2064,6 @@ class Coder:
if accumulated_output.strip() and self.io.confirm_ask(
"Add command output to the chat?", allow_never=True
):
self.io.output("Added ## lines of output to the chat") # TODO
num_lines = len(accumulated_output.strip().splitlines())
self.io.output(f"Added {num_lines} lines of output to the chat")
return accumulated_output