From 05299bd8311b1fbfefdf02a2057935250d40687f Mon Sep 17 00:00:00 2001 From: "abuzarmahmood (aider)" Date: Fri, 6 Jun 2025 13:22:03 +0000 Subject: [PATCH 1/2] fix: include generated edit command in error message for no changes made --- src/response_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/response_agent.py b/src/response_agent.py index eeb4bfc..9def5de 100644 --- a/src/response_agent.py +++ b/src/response_agent.py @@ -1124,7 +1124,7 @@ def run_aider(message: str, repo_path: str) -> str: # Check if there are any changes updated_commit = git.Repo(repo_path).head.object.hexsha if current_commit == updated_commit: - raise RuntimeError("No changes made by Aider") + raise RuntimeError(f"No changes made by Aider. Command used: {message}") # Return to original directory os.chdir(original_dir) From 9684a63d6e2c65ccca06ce153bcf5a663433b1ef Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 6 Jun 2025 13:22:48 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/response_agent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/response_agent.py b/src/response_agent.py index 9def5de..b632a7a 100644 --- a/src/response_agent.py +++ b/src/response_agent.py @@ -1124,7 +1124,8 @@ def run_aider(message: str, repo_path: str) -> str: # Check if there are any changes updated_commit = git.Repo(repo_path).head.object.hexsha if current_commit == updated_commit: - raise RuntimeError(f"No changes made by Aider. Command used: {message}") + raise RuntimeError( + f"No changes made by Aider. Command used: {message}") # Return to original directory os.chdir(original_dir)