From 47294e7609b9c2b46575b8e09e0e7956a3dc7cc3 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 23 Aug 2024 16:44:58 -0700 Subject: [PATCH] fix: Add show_group attribute to ConfirmGroup and initialize it based on the number of items --- aider/io.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aider/io.py b/aider/io.py index be039eefe..da992f624 100644 --- a/aider/io.py +++ b/aider/io.py @@ -28,6 +28,10 @@ from .utils import is_image_file @dataclass class ConfirmGroup: preference: str = None + show_group: bool = True + + def __init__(self, items): + self.show_group = len(items) > 1 class AutoCompleter(Completer):