From 574efcd35dd80d14fa9e937f3884abd6e1a16aeb Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 20 Aug 2024 13:40:28 -0700 Subject: [PATCH] fix: Handle shell commands in apply_edits method --- aider/coders/editblock_coder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/coders/editblock_coder.py b/aider/coders/editblock_coder.py index 9e2e08b4b..0958533e4 100644 --- a/aider/coders/editblock_coder.py +++ b/aider/coders/editblock_coder.py @@ -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):