Harden Aider workspace handoff
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2026-08-21 23:17:43 +02:00
parent bfa5cdcd3e
commit ed7b88ade4
4 changed files with 51 additions and 21 deletions

14
tests/test_agent.py Normal file
View File

@@ -0,0 +1,14 @@
from pathlib import Path
from test_config import settings
from lai_automation.agent import AiderAgent
def test_aider_command_cannot_mutate_git_configuration_or_send_analytics() -> None:
command = AiderAgent(settings()).command(Path("/repo/.git/task.txt"))
assert "--no-gitignore" in command
assert "--no-analytics" in command
assert "--no-auto-commits" in command
assert command.count("/dev/null") == 2