assistant2: Uniquely identify context server entries in configuration view (#27207)

This PR gives each context server entry in the configuration view a
unique element ID.

This fixes some issues where the disclosures and switches weren't
working properly due to element ID collisions.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-03-20 13:37:15 -04:00 committed by GitHub
parent 6408ae81d1
commit f9f5126d2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -195,6 +195,7 @@ impl AssistantConfiguration {
let tool_count = tools.len(); let tool_count = tools.len();
v_flex() v_flex()
.id(SharedString::from(context_server.id()))
.border_1() .border_1()
.rounded_sm() .rounded_sm()
.border_color(cx.theme().colors().border) .border_color(cx.theme().colors().border)