Feat: Add Generate Workflow and Review Workflow button to Agentic Chat Empty State

Summary

Introduces the duo_chat_workplan_empty_state feature flag (wip type) and a new conditional empty state in the Duo Agentic Chat panel when a user is viewing a work item.

What changed

config/feature_flags/wip/duo_chat_workplan_empty_state.yml — New wip feature flag, disabled by default.

ee/app/assets/javascripts/ai/duo_agentic_chat/components/active_trial_or_subscription_empty_state.vue

When the flag is enabled and the resourceId corresponds to a WorkItem GID:

  • No existing workplan → header "Ready when you are" + paragraph "Work with GitLab Duo to break your item into an efficient implementation plan." + Generate Workplan button (emits generate-workplan)
  • Existing workplan found → header "Workplan found" + paragraph "A work plan has already been started for this item." + Review and confirm button (emits review-workplan with the first workplan)

When the flag is disabled or the user is not on a work item, the existing "GitLab Duo Agent Platform" header and full agent/prompt UI are shown unchanged.

  • Related GitLab Work Item: #601244

Screens

Before After Recording
Screenshot_2026-06-04_at_6.41.44_PM Screenshot_2026-06-04_at_11.23.04_PM
Screenshot_2026-06-04_at_6.41.31_PM Screenshot_2026-06-04_at_11.34.44_PM
Screenshot_2026-06-04_at_6.41.16_PM Screenshot_2026-06-04_at_6.41.08_PM Screenshot_2026-06-04_at_3.32.40_PM Screenshot_2026-06-04_at_4.17.11_PM

Testing

For DAP/General Setup

  • General DAP: https://docs.gitlab.com/development/duo_agent_platform/
  • Assigning Duo to a group: https://docs.gitlab.com/development/ai_features/#run-gitlabduosetup-script
  • Make sure you are in SaaS mode with export GITLAB_SIMULATE_SAAS=1 set in your env.runit file in your local gdk.
  • Enable your AI settings:
    • http://gdk.test:3000/<YOUR_GROUP>/<YOUR_PROJECT>/edit#js-gitlab-duo-settings to enable by project
    • http://gdk.test:3000/groups/<YOUR_GROUP>/-/settings/gitlab_duo/configuration to enable by group (SaaS)
    • http://gdk.test:3000/groups/<YOUR_GROUP>/-/edit#js-gitlab-duo-settings to enable group (SM)
    • http://gdk.test:3000/admin/gitlab_duo/configuration to enable at instance (SM)

Feature Flags for Testing

You will need to enable the following Feature Flags

  • duo_chat_workplan_empty_state
  • workplan

Testing

Generate Workplan Empty State

  1. You will need to go to any Work Item in full mode that does not have any Workplans.
  2. Refresh the page to fetch the latest chat (that references the work item). Make sure you have Agentic mode enabled.
  3. Validate the Generate Workplan button appears.
  4. Click Generate Workplan. Validate a workplan is generated in the chat.
  5. Say yes to the generated workplan and see that it runs.

Review Worplan Empty State

  1. You will need to go to any Work Item in full mode that has a Workplan (you may go to the previous one you made in the last test as well).
  2. Refresh the page to fetch the latest chat (that references the work item). Make sure you have Agentic mode enabled.
  3. Validate the Review Workplan button appears.
  4. Click Review Workplan. Validate that it opens the workplan for review.

Review Empty State for Agentic Chat

  1. Open the Agentic Chat in the Side Panel.
  2. Toggle between the different Agents and validate that the empty state persits.
  3. Open a new chat. Validate the empty state persists.

References

  • Feature flag: duo_chat_workplan_empty_state
Edited by Allison Villa

Merge request reports

Loading