From e475fb1bdb98b1b9467def5fee0e0ee2cc25568b Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 9 Sep 2025 20:04:27 -0700 Subject: [PATCH] fix: additional filter for apply / edit --- .../filtering/streamTransforms/lineStream.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/autocomplete/filtering/streamTransforms/lineStream.ts b/core/autocomplete/filtering/streamTransforms/lineStream.ts index 3cf1cec9f..380d56895 100644 --- a/core/autocomplete/filtering/streamTransforms/lineStream.ts +++ b/core/autocomplete/filtering/streamTransforms/lineStream.ts @@ -166,8 +166,13 @@ export const CODE_KEYWORDS_ENDING_IN_SEMICOLON = ["def"]; export const CODE_STOP_BLOCK = "[/CODE]"; export const BRACKET_ENDING_CHARS = [")", "]", "}", ";"]; export const PREFIXES_TO_SKIP = [""]; -export const LINES_TO_STOP_AT = ["# End of file.", ""]; +export const LINES_TO_STOP_AT = [ + "# End of file.", + "", + "```", +]; +export const LINES_TO_SKIP = ["", "<|updated_code|>"]; export const LINES_TO_REMOVE_BEFORE_START = [ "", "[CODE]",