fix(routing): keep media review out of editor and web paths

This commit is contained in:
pewdiepie-archdaemon
2026-09-18 14:16:58 +00:00
parent 9e72d8ef75
commit 225194bac3
4 changed files with 38 additions and 2 deletions
+8
View File
@@ -3004,6 +3004,14 @@ def inline_suggestion_request(user_text):
text = str(user_text or '').strip()
if inline_text_transformation(text):
return False
if re.search(
r"(?:file://)?/workspace/[^\s`\"']+\."
r"(?:avif|bmp|gif|jpe?g|png|svg|tiff?|webp|mp3|m4a|ogg|wav|flac|"
r"aac|mp4|m4v|mov|mkv|avi|webm)\b",
text,
re.I,
):
return False
apply_request = re.search(
r'\b(?:apply|accept)\s+(?:the\s+)?(?:change|changes|suggestion|suggestions)\b',
text, re.I,