From 7dfdc2094ebedc25b8760f1986de6c613d555747 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 12 Apr 2025 20:04:04 -0700 Subject: [PATCH] refactor: Use EditBlockFencedPrompts directly in EditorDiffFencedPrompts --- aider/coders/editblock_fenced_prompts.py | 3 ++- aider/coders/editor_diff_fenced_prompts.py | 12 +++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/aider/coders/editblock_fenced_prompts.py b/aider/coders/editblock_fenced_prompts.py index 26ee09cbc..74f647f93 100644 --- a/aider/coders/editblock_fenced_prompts.py +++ b/aider/coders/editblock_fenced_prompts.py @@ -94,7 +94,8 @@ from hello import hello ), ] - system_reminder = """# *SEARCH/REPLACE block* Rules: + system_reminder = """ +# *SEARCH/REPLACE block* Rules: Every *SEARCH/REPLACE block* must use this format: 1. The opening fence and code language, eg: {fence[0]}python diff --git a/aider/coders/editor_diff_fenced_prompts.py b/aider/coders/editor_diff_fenced_prompts.py index c68d088e5..15b906f79 100644 --- a/aider/coders/editor_diff_fenced_prompts.py +++ b/aider/coders/editor_diff_fenced_prompts.py @@ -1,9 +1,11 @@ # flake8: noqa: E501 -from .editor_editblock_prompts import EditorEditBlockPrompts +from .editblock_fenced_prompts import EditBlockFencedPrompts -class EditorDiffFencedPrompts(EditorEditBlockPrompts): - # Inherits the prompts from EditorEditBlockPrompts - # Specific overrides can be added here if needed - pass +class EditorDiffFencedPrompts(EditBlockFencedPrompts): + shell_cmd_prompt = "" + no_shell_cmd_prompt = "" + shell_cmd_reminder = "" + go_ahead_tip = "" + rename_with_shell = ""