migrate /about (#4207)

This commit is contained in:
Abhi
2025-07-15 02:22:46 -04:00
committed by GitHub
parent 2862ae7344
commit 6e258e2850
6 changed files with 172 additions and 117 deletions

View File

@@ -584,35 +584,6 @@ export const useSlashCommandProcessor = (
toggleCorgiMode();
},
},
{
name: 'about',
description: 'show version info',
action: async (_mainCommand, _subCommand, _args) => {
const osVersion = process.platform;
let sandboxEnv = 'no sandbox';
if (process.env.SANDBOX && process.env.SANDBOX !== 'sandbox-exec') {
sandboxEnv = process.env.SANDBOX;
} else if (process.env.SANDBOX === 'sandbox-exec') {
sandboxEnv = `sandbox-exec (${
process.env.SEATBELT_PROFILE || 'unknown'
})`;
}
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(),
cliVersion,
osVersion,
sandboxEnv,
modelVersion,
selectedAuthType,
gcpProject,
});
},
},
{
name: 'bug',
description: 'submit a bug report',
@@ -1021,7 +992,6 @@ export const useSlashCommandProcessor = (
toggleCorgiMode,
savedChatTags,
config,
settings,
showToolDescriptions,
session,
gitService,