This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user