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/lib
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_dashboard FIX: Split browser pageview rollup source at the cutover date (#42013) 2026-07-24 14:56:36 +08:00
agents FIX: Stop Admin Assistant chain at pending approval (#42320) 2026-08-04 20:01:03 -03:00
ai_bot FIX: Authorize Retried AI Bot Replies Against Topic Creator (#42325) 2026-08-05 14:28:53 -05:00
ai_helper PERF: Speed up AI helper diff streaming (#41787) 2026-07-17 10:17:54 -03:00
ai_moderation DEV: Enable Style/RedundantSelf rubocop rule (#40098) 2026-05-19 19:27:45 +02:00
ai_tool_scripts FEATURE: Add category definition filters and AI filterTopics binding (#39478) 2026-04-23 17:07:07 +10:00
automation FIX: Avoid duplicate AI triage reviewables when review precedes spam (#41079) 2026-06-22 15:48:56 +08:00
completions FIX: Preserve whitespace in streamed JSON (#42339) 2026-08-05 17:31:29 +10:00
configuration FEATURE: Dedicated image caption AI feature and agent validations (#41729) 2026-07-16 11:29:39 +08:00
database
discord/bot FIX: Run Discord agents as their associated user (#40914) 2026-06-15 18:00:30 -03:00
discover DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
embeddings DEV: Tidy plugin API key scope resource names (#38640) 2026-03-17 13:03:42 +11:00
inference
inferred_concepts DEV: Fix assigned but unused variable Prism warnings (#39436) 2026-04-22 12:42:14 +02:00
mcp FEATURE: Add advanced OAuth options for MCP servers (#38913) 2026-04-01 08:47:23 +11:00
sentiment DEV: Let plugins exclude reports from the customisable dashboard (#40463) 2026-06-03 16:36:01 +03:00
summarization FEATURE: Add locale-aware AI summaries (#41893) 2026-07-22 17:31:38 +10:00
tasks/modules DEV: Remove rake task (#42157) 2026-07-30 16:37:37 +08:00
translation FIX: Default AI translation backfill start date when translations are enabled (#42310) 2026-08-04 11:33:23 -03:00
utils FIX: Preserve whitespace in streamed JSON (#42339) 2026-08-05 17:31:29 +10:00
admin_dashboard.rb FEATURE: AI highlights for new dashboard (#40740) 2026-06-10 23:00:35 +08:00
ai_api_audit_log_cleaner.rb FEATURE: Also delete api logs when user / user content is deleted (#41122) 2026-06-24 15:21:00 +08:00
ai_bot.rb FIX: Authorize Retried AI Bot Replies Against Topic Creator (#42325) 2026-08-05 14:28:53 -05:00
automation.rb FIX: Preserve safe formatting in reviewable reasons (#42164) 2026-07-30 17:07:08 +02:00
embeddings.rb
engine.rb DEV: Add DiscourseAi.register_feature public API (#39127) 2026-05-12 10:16:07 +08:00
guardian_extensions.rb FIX: Allow AI bot conversations when PM creation is restricted (#41232) 2026-06-29 11:06:39 -05:00
multisite_hash.rb
post_extensions.rb
post_image_captions.rb FEATURE: Dedicated image caption AI feature and agent validations (#41729) 2026-07-16 11:29:39 +08:00
summarization.rb FEATURE: Allow selection of multiple content languages when viewing topics and posts (#42128) 2026-07-30 12:19:44 +08:00
topic_extensions.rb FEATURE: Add locale-aware AI summaries (#41893) 2026-07-22 17:31:38 +10:00
translation.rb UX: Convert AI translation's max days ago setting to a specific date setting instead (#42082) 2026-07-28 18:27:34 +08:00
workflow_schema_fields.rb FEATURE: schema based workflow (#41684) 2026-07-15 13:22:29 +02:00