Disable classic Duo Chat for Duo Core users

What does this MR do and why?

Disable classic Duo Chat for Duo Core users

  • Add feature flag no_duo_classic_for_duo_core_users
  • Force agentic mode when classic is unavailable
  • Hide mode toggle for Duo Core users
  • Add RSpec and Jest tests for new functionality

References

Screenshots or screen recordings

Before After
Screenshot_2025-12-02_at_21.10.53 Screenshot_2025-12-02_at_19.07.04

How to set up and validate locally

  1. In rails console enable the feature flag
    Feature.enable(:no_duo_classic_for_duo_core_users)
  2. I'm not sure how to mock core_duo user in GDK so here is a patch to go around backend.
  3. Visit any page with chat duo

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Tomas Bulva

Merge request reports

Loading