Elffuss BraidHub

kikocis/continue public

Merge pull request #7679 from continuedev/nate/apply-filters

fix: additional filter for apply / edit
Changeset6faf0486120584657002f5bedc05ddcd50c6d675f37c61b9fd688db846de883c
AuthorNate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-09-09 21:53 -07:00
CommitterGitHub <noreply@github.com> · 2025-09-09 21:53 -07:00
Parents586afb307a7f, 616e0b50739f

Browse the files at this changeset

1 file changed

modified core/autocomplete/filtering/streamTransforms/lineStream.ts +7 −2
@@ -166,8 +166,13 @@
166166 export const CODE_STOP_BLOCK = "[/CODE]";
167167 export const BRACKET_ENDING_CHARS = [")", "]", "}", ";"];
168168 export const PREFIXES_TO_SKIP = ["<COMPLETION>"];
169-export const LINES_TO_STOP_AT = ["# End of file.", "<STOP EDITING HERE"];
170-export const LINES_TO_SKIP = ["</START EDITING HERE>"];
169+export const LINES_TO_STOP_AT = [
170+ "# End of file.",
171+ "<STOP EDITING HERE",
172+ "<|/updated_code|>",
173+ "```",
174+];
175+export const LINES_TO_SKIP = ["</START EDITING HERE>", "<|updated_code|>"];
171176 export const LINES_TO_REMOVE_BEFORE_START = [
172177 "<COMPLETION>",
173178 "[CODE]",