From 1a84c109fcb25858c78c39b37873632ca59d015f Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 10 Jan 2025 14:07:24 -0800 Subject: [PATCH] feat: allow /ask, /code, /architect without args to switch modes --- aider/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index 34b3881bb..067006072 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -1074,8 +1074,8 @@ class Commands: def _generic_chat_command(self, args, edit_format): if not args.strip(): - self.io.tool_error(f"Please provide a question or topic for the {edit_format} chat.") - return + # Switch to the corresponding chat mode if no args provided + return self.cmd_chat_mode(edit_format) from aider.coders.base_coder import Coder