fix(agent): scope parallel batches from V4A patch headers

This commit is contained in:
Fangliquan
2026-07-22 22:12:20 +08:00
committed by Teknium
parent 003af7f85c
commit 87bc710609
3 changed files with 171 additions and 25 deletions
@@ -65,6 +65,13 @@ class TestExtractFileMutationTargets:
assert paths == ["/tmp/a.md", "/tmp/new.md", "/tmp/old.md"]
def test_patch_v4a_accepts_no_space_after_asterisks(self):
"""Match patch_parser / file_tools: ``***Update File:`` (no space)."""
body = "***Update File: nospace.py\n"
assert _extract_file_mutation_targets(
"patch", {"mode": "patch", "patch": body}
) == ["nospace.py"]
# ---------------------------------------------------------------------------
# _extract_error_preview