feat: allow /ask, /code, /architect without args to switch modes

This commit is contained in:
Paul Gauthier (aider) 2025-01-10 14:07:24 -08:00
parent cbedf3f8cc
commit 1a84c109fc

View file

@ -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