Gemini 3.8 Flash · 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
- 2
- Comments matching a bug
- 2
- Comments not matching
- 0
- Cost of this PR
- $0.189
Published comments (2)
Duplicate self.downsize definition overwrites multi-argument version — Callers like `Jobs::ResizeEmoji` that pass width and height separately will raise an `ArgumentError`. Consolidate `self.downsize` into a single method that handles both dimension strings and numeric arguments.
Hardcoded maxSizeKB bypasses attachment size limit — Non-image attachments bypass client-side size restrictions even though the server cannot automatically downsize them. Check `Discourse.SiteSettings.max_attachment_size_kb` when `type` is `'attachment'` and apply the 10MB `maxSizeKB` limit only for `'image'`.