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/ai_bot
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
..
chat_streamer.rb
chat_tool_approval.rb FEATURE: Approve AI moderation actions inline in bot chat DMs (#41565) 2026-07-13 17:08:35 -03:00
entry_point.rb FIX: Validate the ai_agent_id topic custom field on topic creation (#42275) 2026-08-04 12:08:26 -03:00
playground.rb FIX: Authorize Retried AI Bot Replies Against Topic Creator (#42325) 2026-08-05 14:28:53 -05:00
post_streamer.rb
response_http_streamer.rb FIX: Record feature_name for streamed bot replies (#41784) 2026-07-16 18:50:41 -03:00
site_settings_extension.rb
stream_reply_custom_tools_session.rb FIX: Improve vLLM completion handling (#41862) 2026-07-21 16:35:05 +10:00
topic_agent_validator.rb FIX: Validate the ai_agent_id topic custom field on topic creation (#42275) 2026-08-04 12:08:26 -03:00