diff --git a/aider/args.py b/aider/args.py index 871cbd9c3..f85316927 100644 --- a/aider/args.py +++ b/aider/args.py @@ -817,7 +817,10 @@ def get_parser(default_config_files, git_root): "--notifications", action=argparse.BooleanOptionalAction, default=False, - help="Enable/disable terminal bell notifications when LLM responses are ready (default: False)", + help=( + "Enable/disable terminal bell notifications when LLM responses are ready (default:" + " False)" + ), ) group.add_argument( "--notifications-command", diff --git a/aider/io.py b/aider/io.py index 6863b41e2..3109cf275 100644 --- a/aider/io.py +++ b/aider/io.py @@ -960,6 +960,7 @@ class InputOutput: if self.notifications_command: try: import subprocess + subprocess.run(self.notifications_command, shell=True) except Exception as e: self.tool_warning(f"Failed to run notifications command: {e}")