Fixed

Chat Threads: Feedback Filters Respect Global Admin Roles

Fixed a bug in chat thread feedback filtering where admin feedback detection only considered account:{accountId} role scope. In workspaces where reviewers had global admin role but no account-scoped admin role, adminFeedback=true could incorrectly return zero results.

What Was Fixed

  • Updated admin-feedback classification to treat reviewers as admins when they have either:
    • admin role at global scope, or
    • admin role at account:{accountId} scope
  • Added role-expiration checks to match the existing auth role semantics.
  • Applied the same admin-role predicate to both:
    • feedback filter query (userFeedback / adminFeedback)
    • per-thread feedback aggregation fields (userFeedbackScore / adminFeedbackScore)

Modified Endpoint

  • GET /api/v1/accounts/{accountId}/chat-threads