feat(about): Add the IDE Client's display name to /about (#6311)

Co-authored-by: Bryan Morgan <bryanmorgan@google.com>
This commit is contained in:
Evan Otero 2025-08-15 12:32:15 -04:00 committed by GitHub
parent 72195d5553
commit ab1c483cab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 57 additions and 0 deletions

View file

@ -28,6 +28,9 @@ export const aboutCommand: SlashCommand = {
const selectedAuthType =
context.services.settings.merged.selectedAuthType || '';
const gcpProject = process.env.GOOGLE_CLOUD_PROJECT || '';
const ideClient =
context.services.config?.getIdeClient()?.getDetectedIdeDisplayName() ||
'';
const aboutItem: Omit<HistoryItemAbout, 'id'> = {
type: MessageType.ABOUT,
@ -37,6 +40,7 @@ export const aboutCommand: SlashCommand = {
modelVersion,
selectedAuthType,
gcpProject,
ideClient,
};
context.ui.addItem(aboutItem, Date.now());