Add the current auth method and GCP Project config to the about message (#2112)

This commit is contained in:
Preston Holmes
2025-06-27 08:46:27 -07:00
committed by GitHub
parent 3ebf54f367
commit 3aabb940f5
6 changed files with 126 additions and 0 deletions

View File

@@ -103,6 +103,8 @@ export const useSlashCommandProcessor = (
osVersion: message.osVersion,
sandboxEnv: message.sandboxEnv,
modelVersion: message.modelVersion,
selectedAuthType: message.selectedAuthType,
gcpProject: message.gcpProject,
};
} else if (message.type === MessageType.STATS) {
historyItemContent = {
@@ -596,6 +598,8 @@ export const useSlashCommandProcessor = (
}
const modelVersion = config?.getModel() || 'Unknown';
const cliVersion = await getCliVersion();
const selectedAuthType = settings.merged.selectedAuthType || '';
const gcpProject = process.env.GOOGLE_CLOUD_PROJECT || '';
addMessage({
type: MessageType.ABOUT,
timestamp: new Date(),
@@ -603,6 +607,8 @@ export const useSlashCommandProcessor = (
osVersion,
sandboxEnv,
modelVersion,
selectedAuthType,
gcpProject,
});
},
},
@@ -1007,6 +1013,7 @@ export const useSlashCommandProcessor = (
toggleCorgiMode,
savedChatTags,
config,
settings,
showToolDescriptions,
session,
gitService,