Fix agent_profile_switched telemetry event name (#57739)

The `agent_profile_switched` event fired from the profile picker was
using snake_case instead of the title case used by every other agent
telemetry event. This caused it to land in Amplitude as a separate event
from the `Agent Profile Switched` event fired by keyboard cycling,
making it impossible to track profile switches in a single chart.

Renames the event to `Agent Profile Switched` to match. The `source`
property (`"picker"` vs `"cycle"`) still distinguishes the two code
paths.

Release Notes:

- N/A
This commit is contained in:
María Craig 2026-05-26 15:48:29 -03:00 committed by GitHub
parent efacf30294
commit 6e9f461cf8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -541,7 +541,7 @@ impl PickerDelegate for ProfilePickerDelegate {
provider.set_profile(profile_id.clone(), cx);
telemetry::event!(
"agent_profile_switched",
"Agent Profile Switched",
profile_id = profile_id.as_str(),
source = "picker"
);