fix(ai): creation dossier+fichier en mode agent (BUG-050)
CI / lint (push) Successful in 1m32s
CI / security (push) Successful in 1m7s
CI / test (push) Successful in 3m6s
CI / build (push) Successful in 55s
CI / e2e (push) Successful in 10m48s

This commit is contained in:
2026-09-16 21:10:38 -04:00
parent 0d4f43a8bf
commit 634d10cdd4
18 changed files with 168 additions and 22 deletions
+7
View File
@@ -143,6 +143,13 @@ class TestCreate:
assert result.ok
assert (_vault_path() / "A" / "B").is_dir()
def test_create_directory_idempotent(self, client):
"""BUG-050: re-creating an existing folder is a success for the AI layer."""
call_tool("create_directory", _ctx(), {"vault": "TestVault", "path": "Idem/Dir"}, confirm=True)
second = call_tool("create_directory", _ctx(), {"vault": "TestVault", "path": "Idem/Dir"}, confirm=True)
assert second.ok
assert second.data.get("existed") is True
# ═══════════════════════════════════════════════════════════════════
# D2. Edit / append / rename / move