fix: Handle shell commands in apply_edits method

This commit is contained in:
Paul Gauthier (aider) 2024-08-20 13:40:28 -07:00
parent 5f4d6bc4a5
commit 574efcd35d

View file

@ -440,7 +440,7 @@ def find_original_update_blocks(content, fence=DEFAULT_FENCE):
if pieces and pieces[-1].strip().startswith("```"):
pieces.pop() # Remove the closing ```
shell_type = cur.strip().split("```")[1]
yield "".join(shell_content)
yield f"{shell_type}_command", "".join(shell_content)
continue
if cur in (DIVIDER, UPDATED):