diff --git a/aider/coder.py b/aider/coder.py index e3576a7ee..01ddc395e 100755 --- a/aider/coder.py +++ b/aider/coder.py @@ -192,7 +192,9 @@ class Coder: self.num_control_c = 0 - if self.repo and self.repo.is_dirty(): + is_commit_command = (inp and inp.startswith('/commit')) + + if self.repo and self.repo.is_dirty() not is_commit_command: self.commit(ask=True, which="repo_files") # files changed, move cur messages back behind the files messages