Use Aider model edit defaults
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2026-08-28 14:55:35 +02:00
parent 057c78110d
commit 2d9e44f789
2 changed files with 3 additions and 6 deletions

View File

@@ -83,8 +83,6 @@ class AiderAgent:
"--input-history-file", "--input-history-file",
"/dev/null", "/dev/null",
"--no-analytics", "--no-analytics",
"--edit-format",
"udiff",
"--timeout", "--timeout",
"180", "180",
] ]
@@ -96,7 +94,5 @@ class AiderAgent:
"--architect", "--architect",
"--editor-model", "--editor-model",
self.settings.agent_model, self.settings.agent_model,
"--editor-edit-format",
"udiff",
]) ])
return command return command

View File

@@ -12,7 +12,8 @@ def test_aider_command_cannot_mutate_git_configuration_or_send_analytics() -> No
assert "--no-analytics" in command assert "--no-analytics" in command
assert "--no-auto-commits" in command assert "--no-auto-commits" in command
assert command.count("/dev/null") == 2 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: 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 "missing.php" not in command
assert "--architect" in command assert "--architect" in command
assert command[command.index("--editor-model") + 1] == "mistral/test" 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: def test_unrouted_aider_command_stays_in_direct_edit_mode() -> None: