Fix agentConfig reset when reselecting same custom agent
What does this MR do and why?
Fixes a bug where agentConfig was incorrectly reset to null when selecting the same custom agent multiple times from the new chat dropdown.
Meant to solve: #579102
How to set up and validate locally
- Enable custom agents in your GDK environment
- Open Duo Agentic Chat
- Select a custom (non-default!) agent from the dropdown
- Send a message, verify the correct agentConfig being sent to the Backend
- Click "New chat" and select the same custom agent again
- Send another message
- Verify the message still sends the correct agentConfig to the Backend (not null)
Screenshots or screen recordings
| Before | After |
|---|---|
| 2025-11-04_14-56-39 | 2025-11-04_14-51-14 |
Edited by Jannik Lehmann