0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-07 13:19:19 +08:00
discourse/plugins/discourse-ai/spec
Mark VanLandingham c2a47a6675
FIX: Authorize Retried AI Bot Replies Against Topic Creator (#42325)
## Summary

Previously, AI bot replies checked agent access against the author of
the latest post, which meant a more privileged participant could
unintentionally unlock a restricted agent for a conversation; retries
could also lose the original authorization context, especially after a
failed response.

This change keeps topic-selected agents tied to the topic creator’s
permissions, records the exact authorizing user before response
generation begins, and reuses that information for retries. Explicit
agent mentions still use the mentioning user’s permissions, while legacy
conversations and missing users fail closed rather than guessing or
inheriting access from another participant.
## Source

- Patch Triage: https://patch.discourse.org/patch-triage/1180
2026-08-05 14:28:53 -05:00
..
configuration DEV: Fix ai_image_caption_agent site setting leaking between specs (#41806) 2026-07-17 11:12:21 +01:00
evals FEATURE: Add locale-aware AI summaries (#41893) 2026-07-22 17:31:38 +10:00
fabricators FEATURE: Add Gemini Interactions API support (#42206) 2026-08-04 16:23:05 +10:00
fixtures DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
integration DEV: Tidy plugin API key scope resource names (#38640) 2026-03-17 13:03:42 +11:00
jobs DEV: Prefer RSpec primitives for test setup (#42122) 2026-07-30 11:17:22 +08:00
lib FIX: Authorize Retried AI Bot Replies Against Topic Creator (#42325) 2026-08-05 14:28:53 -05:00
models FEATURE: Add locale-aware AI summaries (#41893) 2026-07-22 17:31:38 +10:00
reports
requests FIX: Authorize Retried AI Bot Replies Against Topic Creator (#42325) 2026-08-05 14:28:53 -05:00
serializers FEATURE: Add locale-aware AI summaries (#41893) 2026-07-22 17:31:38 +10:00
services DEV: Accept group ids when importing agents (#42166) 2026-08-03 13:45:25 +08:00
shared/inference
support DEV: Add DiscourseAi.register_feature public API (#39127) 2026-05-12 10:16:07 +08:00
system FEATURE: Allow admins to duplicate AI agents (#42298) 2026-08-04 18:02:00 +08:00
tasks DEV: Fix deprecations in plugins specs and silence output (#39257) 2026-04-15 00:00:46 +02:00
plugin_helper.rb DEV: Fix tags_locale_detection_backfill spec flakes (#39553) 2026-04-27 10:45:04 +02:00
plugin_spec.rb DEV: Remove deprecated AI plugin settings (#37459) 2026-02-03 05:39:38 -08:00