allow focused still-image reinspections

This commit is contained in:
pewdiepie-archdaemon
2026-09-17 23:38:25 +00:00
parent dacf9f7120
commit d0aee5afc7
2 changed files with 22 additions and 8 deletions
+8 -1
View File
@@ -243,7 +243,14 @@ def semantic_repeat_scope(name, args):
raw_path = str(args.get('path') or '').strip()
suffix = os.path.splitext(raw_path.casefold())[1]
if raw_path and suffix in {'.jpg', '.jpeg', '.png', '.webp', '.gif', '.bmp'}:
return ('still_image_inspection', os.path.normpath(raw_path))
query = re.sub(r'\s+', ' ', str(args.get('query') or '')).strip().casefold()
try:
max_dimension = int(args.get('max_dimension') or 0)
except (TypeError, ValueError):
max_dimension = 0
return (
'still_image_inspection', os.path.normpath(raw_path), query, max_dimension,
)
if tool == 'bash':
command = str(args.get('command') or '')
lowered = command.casefold()