Reversed toggle and changed toggle label behind feature flag

What does this MR do and why?

This change updates the chat interface toggle switch to be more intuitive for users.

Previously, the toggle was labeled "Chat (Classic)" and worked backwards - turning it off would enable the newer "agentic" chat mode. Now the toggle is labeled "Chat (Agentic)" and works directly - turning it on enables agentic mode, turning it off disables it. This makes the user interface clearer and eliminates the confusing inverted logic where users had to turn off "Classic" to get the newer features.

References

Screenshots or screen recordings

FF on

Before After
Screenshot_2025-12-08_at_20.36.45 Screenshot_2025-12-10_at_13.52.43
Screenshot_2025-12-08_at_20.36.51 Screenshot_2025-12-10_at_13.52.52

FF off

Before After
Screenshot_2025-12-08_at_20.36.12 Screenshot_2025-12-08_at_20.33.25
Screenshot_2025-12-08_at_20.36.19 Screenshot_2025-12-08_at_20.33.17

How to set up and validate locally

  1. In rails console enable the feature flag
    Feature.enable(:agentic_chat_ga)
  2. Visit any page with duo chat
  3. If you have a cookie saved duo_agentic_mode_on delete it
  4. observe that chat defaults to agentic

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