GPT-6.1 Sol · Heavy
feature-automatically-downsize-large-images-discourse-cursor
Discourse · Ruby · S · 30–99 lines · 3 files
The generalist plus 9 specialist lens agents in parallel, then the same verify and dedup steps. Judge: Claude Haiku 5.5.
- Gold bugs found
- 2 of 8
- Comments published
- 3
- Comments matching a bug
- 2
- Comments not matching
- 1
- Cost of this PR
- $0.730
Published comments (3)
Fixed 10 MB upload limit ignores configured attachment size limits — Attachments permitted by `max_attachment_size_kb` can be rejected, while files exceeding smaller configured limits upload only to fail server-side validation. Apply the relaxed `maxSizeKB` limit only to images and retain `max_attachment_size_kb` for attachments.
Duplicate downsize definition breaks width/height calls — Ruby replaces the earlier `downsize` definition, so width/height calls fail at `opts[:allow_animation]` in `optimize`, and calls with a fifth argument raise an argument-count error. Give the geometry-based method a separate name or make `downsize` explicitly support both argument forms.
Oversized animated avatars use the thumbnail animation setting — Oversized animated avatars are permanently flattened when `allow_animated_avatars` is enabled but `allow_animated_thumbnails` is disabled, before `Upload.create_for` can apply the avatar setting. Pass `SiteSetting.allow_animated_avatars` to `OptimizedImage.downsize` for avatar uploads, matching `Upload.create_for`.