Gemini 3.8 Flash · Heavy
enhance-embed-url-handling-and-validation-system-discourse-cursor
Discourse · Ruby · M · 100–299 lines · 6 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 12
- Comments published
- 5
- Comments matching a bug
- 2
- Comments not matching
- 3
- Cost of this PR
- $0.814
Published comments (5)
NoMethodError when feed item content is nil — Feed items that omit content abort the scheduled poll job when `scrub` is called on `nil`. Check that `i.content` is present before calling `scrub` and `CGI.unescapeHTML`.
Syntax error from invalid `<%- end if %>` tag — ERB compilation fails and crashes the view whenever comments render. Replace `<%- end if %>` with `<%- end %>` to close the conditional block.
Test 'requires feed_polling_url' does not enable feed polling — Because `SiteSetting.feed_polling_enabled?` defaults to `false`, `execute` short-circuits early and creates a false positive even if URL validation breaks. Stub `feed_polling_enabled?` to `true` and supply `embed_by_username`.
Test does not stub feed_polling_enabled? or feed_polling_url — Because `SiteSetting.feed_polling_enabled?` defaults to `false`, `execute` short-circuits early and passes even if username checks break. Stub `feed_polling_enabled?` to `true` and configure `feed_polling_url`.
Full URL passed as postMessage targetOrigin fails origin match — Passing the full URL from `request.referer` fails origin matching or throws a `SyntaxError`, blocking `discourse-resize` messages. Pass `'*'` or a parsed origin to `parent.postMessage` instead.