diff --git a/lua/chatgpt_nvim/prompts.lua b/lua/chatgpt_nvim/prompts.lua index 3b6591a..dd38f5f 100644 --- a/lua/chatgpt_nvim/prompts.lua +++ b/lua/chatgpt_nvim/prompts.lua @@ -437,6 +437,7 @@ local M = { 4. **Read Before Write Rule** - **Do not perform any write operations (using `edit_file` or `replace_in_file`) on an existing file unless you have already read its content in the current session using a `read_file` operation.** - For new files (files that do not yet exist in the project), this rule does not apply. + - If yo already got the file contents in the first prompt, this rule does not apply. - **Never** mix read_file with edit_file or replace_in_file in the same YAML block. 5. **File Inspection Before Modification**