From 2d9e44f789dbdebc4db750ed9808fcaed7b46b09 Mon Sep 17 00:00:00 2001 From: Christian Meyer Date: Fri, 28 Aug 2026 14:55:35 +0200 Subject: [PATCH] Use Aider model edit defaults --- src/lai_automation/agent.py | 4 ---- tests/test_agent.py | 5 +++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/lai_automation/agent.py b/src/lai_automation/agent.py index 833b553..be18b38 100644 --- a/src/lai_automation/agent.py +++ b/src/lai_automation/agent.py @@ -83,8 +83,6 @@ class AiderAgent: "--input-history-file", "/dev/null", "--no-analytics", - "--edit-format", - "udiff", "--timeout", "180", ] @@ -96,7 +94,5 @@ class AiderAgent: "--architect", "--editor-model", self.settings.agent_model, - "--editor-edit-format", - "udiff", ]) return command diff --git a/tests/test_agent.py b/tests/test_agent.py index d5ec2bf..4738fd4 100644 --- a/tests/test_agent.py +++ b/tests/test_agent.py @@ -12,7 +12,8 @@ def test_aider_command_cannot_mutate_git_configuration_or_send_analytics() -> No assert "--no-analytics" in command assert "--no-auto-commits" in command assert command.count("/dev/null") == 2 - assert command[-4:] == ["--edit-format", "udiff", "--timeout", "180"] + assert "--edit-format" not in command + assert command[-2:] == ["--timeout", "180"] def test_aider_command_adds_existing_routed_files(tmp_path) -> None: @@ -33,7 +34,7 @@ def test_aider_command_adds_existing_routed_files(tmp_path) -> None: assert "missing.php" not in command assert "--architect" in command assert command[command.index("--editor-model") + 1] == "mistral/test" - assert command[command.index("--editor-edit-format") + 1] == "udiff" + assert "--editor-edit-format" not in command def test_unrouted_aider_command_stays_in_direct_edit_mode() -> None: