0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-08 17:53:55 +08:00
discourse/plugins/discourse-ai/spec/requests/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
..
artifact_key_values_controller_spec.rb
artifacts_controller_spec.rb SECURITY: Shared conversations and artifacts remain accessible (#41554) 2026-07-08 14:41:02 -05:00
bot_controller_spec.rb FIX: Authorize Retried AI Bot Replies Against Topic Creator (#42325) 2026-08-05 14:28:53 -05:00
conversation_creation_spec.rb FIX: Allow AI bot conversations when PM creation is restricted (#41232) 2026-06-29 11:06:39 -05:00
conversations_controller_spec.rb DEV: Make enable_ai_bot_starred_conversations permanent (#41844) 2026-07-21 14:14:00 -04:00
posts_controller_spec.rb FIX: Authorize Retried AI Bot Replies Against Topic Creator (#42325) 2026-08-05 14:28:53 -05:00
shared_ai_conversations_controller_spec.rb SECURITY: Shared conversations and artifacts remain accessible (#41554) 2026-07-08 14:41:02 -05:00
shared_ai_conversations_controller_spec.rb.lock
topic_agent_field_spec.rb FIX: Validate the ai_agent_id topic custom field on topic creation (#42275) 2026-08-04 12:08:26 -03:00
topic_serialization_spec.rb