Decorate user messages that start a goal with a "goal" badge

What does this MR do and why?

It displays a badge to identify messages that start a goal in duo agentic chat.

References

Closes Display a Goal badge in the user message (#628229 - closed)

Screenshots or screen recordings

Before After
goal_token_before.png goal_token_after.png

How to set up and validate locally

  1. Enable the duo_chat_goal_command feature flag in the Rails console: Feature.enable(:duo_chat_goal_command)
  2. Open Duo Agentic Chat in a project that has the Developer foundational flow configured
  3. Type /goal keep the pipeline green in the composer — the composer shows a removable Goal token and the /goal text disappears from the input
  4. Send it. The user bubble in the transcript shows a "Goal" badge with keep the pipeline green underneath, and no /goal token
  5. Reload the page and reopen the thread — the badge is still there
  6. Send an ordinary chat message and a /flow: command and confirm both render as before

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 Enrique Alcántara

Merge request reports

Loading
Loading