feat: Allow /ok command to accept optional arguments

Co-authored-by: aider (gpt-5.2) <aider@aider.chat>
This commit is contained in:
Paul Gauthier
2026-02-26 06:49:40 -08:00
parent b23516061e
commit edfe0c801b

View File

@@ -1196,8 +1196,12 @@ class Commands:
return self._generic_chat_command(args, "context", placeholder=args.strip() or None)
def cmd_ok(self, args):
"Alias for `/code Ok, please go ahead and make those changes.`"
return self.cmd_code("Ok, please go ahead and make those changes.")
"Alias for `/code Ok, please go ahead and make those changes.` (any args are appended)"
msg = "Ok, please go ahead and make those changes."
extra = (args or "").strip()
if extra:
msg = f"{msg} {extra}"
return self.cmd_code(msg)
def _generic_chat_command(self, args, edit_format, placeholder=None):
if not args.strip():