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-workplanwith 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
- Related GitLab Work Item: #601244
Screens
| Before | After | Recording |
|---|---|---|
![]() |
![]() |
|
![]() |
![]() |
|
![]() |
![]() |
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
SaaSmode withexport GITLAB_SIMULATE_SAAS=1set in yourenv.runitfile in your local gdk. - Enable your AI settings:
http://gdk.test:3000/<YOUR_GROUP>/<YOUR_PROJECT>/edit#js-gitlab-duo-settingsto enable by projecthttp://gdk.test:3000/groups/<YOUR_GROUP>/-/settings/gitlab_duo/configurationto enable by group (SaaS)http://gdk.test:3000/groups/<YOUR_GROUP>/-/edit#js-gitlab-duo-settingsto enable group (SM)http://gdk.test:3000/admin/gitlab_duo/configurationto enable at instance (SM)
Feature Flags for Testing
You will need to enable the following Feature Flags
duo_chat_workplan_empty_stateworkplan
Testing
Generate Workplan Empty State
- You will need to go to any
Work Itemin full mode that does not have any Workplans. - Refresh the page to fetch the latest chat (that references the work item). Make sure you have
Agentic modeenabled. - Validate the
Generate Workplanbutton appears. - Click
Generate Workplan. Validate a workplan is generated in the chat. - Say
yesto the generated workplan and see that it runs.
Review Worplan Empty State
- You will need to go to any
Work Itemin full mode that has a Workplan (you may go to the previous one you made in the last test as well). - Refresh the page to fetch the latest chat (that references the work item). Make sure you have
Agentic modeenabled. - Validate the
Review Workplanbutton appears. - Click
Review Workplan. Validate that it opens the workplan for review.
Review Empty State for Agentic Chat
- Open the Agentic Chat in the Side Panel.
- Toggle between the different Agents and validate that the empty state persits.
- Open a new chat. Validate the empty state persists.
References
- Feature flag:
duo_chat_workplan_empty_state
Edited by Allison Villa







