Pass dynamic resource ID from the contextual view to new Duo chat
What does this MR do and why?
In the "old" agentic chat, we passed a context of the work item opened in the drawer via reactive variable. This was missed during the migration to new Duo chat, so I am reinstating the change.
Old implementation can be found here
References
https://gitlab.com/gitlab-org/gitlab/-/issues/577188
How to set up and validate locally
- Enable new UI
- Open agentic chat panel.
- Navigate to issue list or work item with child work items
- Open any work ited in the contextual panel
- Ask Duo about this work item
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.