0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/plugins/discourse-ai/app/controllers/discourse_ai
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
..
admin UX: Convert AI translation's max days ago setting to a specific date setting instead (#42082) 2026-07-28 18:27:34 +08:00
ai_bot FIX: Authorize Retried AI Bot Replies Against Topic Creator (#42325) 2026-08-05 14:28:53 -05:00
ai_helper FEATURE: Automatic AI captions (#41586) 2026-07-15 13:24:10 +08:00
discord DEV: Ai bot Signature verification uses different body source than action logic (#38294) 2026-03-05 16:30:05 -03:00
discover FIX: Disabled AI Discover remains usable via continue-conversation endpoint (#42267) 2026-08-03 12:01:10 -05:00
embeddings DEV: Improve rate limiting on hyde search (#37794) 2026-02-13 17:00:00 -03:00
sentiment FEATURE: Add agent-backed sentiment classification (#40136) 2026-05-26 10:32:54 -03:00
summarization FEATURE: Add locale-aware AI summaries (#41893) 2026-07-22 17:31:38 +10:00
translation DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
ai_credits_controller.rb SECURITY: Unscoped status lookups leak restricted metadata 2026-03-19 15:21:28 +00:00
mcp_oauth_controller.rb FIX: Improve MCP OAuth callback error handling (#38889) 2026-03-27 07:34:24 +11:00
post_image_captions_controller.rb FEATURE: Dedicated image caption AI feature and agent validations (#41729) 2026-07-16 11:29:39 +08:00