GPT-6.1 Sol · Balanced
feature-automatically-downsize-large-images-discourse-cursor
Discourse · Ruby · S · 30–99 lines · 3 files
The normal review, with one generalist agent. 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.667
Published comments (3)
Duplicate downsize definition breaks width-and-height callers — `Jobs::ResizeEmoji.execute` still passes five arguments, so replacing `self.downsize` makes emoji resizing raise `ArgumentError`. Keep one method that accepts both argument forms, or give the geometry-string variant a distinct name.
Fixed 10 MB limit rejects attachments allowed by site settings — Attachments permitted by `max_attachment_size_kb` can no longer pass client validation because `maxSizeKB` ignores that setting. Apply the new allowance only to images and retain the configured attachment limit.
Oversized animated avatars lose animation under the thumbnail policy — `OptimizedImage.downsize` discards animation before `Upload.create_for` can apply `allow_animated_avatars` when `allow_animated_thumbnails` is disabled. Select the animation setting by upload type before downsizing.