summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/slashCommandProcessor.ts
diff options
context:
space:
mode:
authorBrandon Keiji <[email protected]>2025-06-18 09:57:17 -0700
committerGitHub <[email protected]>2025-06-18 16:57:17 +0000
commit30d1662128e688bf94653a0144ef96c311fae40b (patch)
tree439f4f7febd2a37af11c8ea6b6c21865f0a0052f /packages/cli/src/ui/hooks/slashCommandProcessor.ts
parent3453b977b8d200ebb5195cc2db38d89dbc2a7323 (diff)
fix: check package.json for app version (#1160) (#1182)
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
-rw-r--r--packages/cli/src/ui/hooks/slashCommandProcessor.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
index 8303ea55..0e622f23 100644
--- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts
+++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
@@ -518,7 +518,7 @@ export const useSlashCommandProcessor = (
{
name: 'about',
description: 'show version info',
- action: (_mainCommand, _subCommand, _args) => {
+ action: async (_mainCommand, _subCommand, _args) => {
const osVersion = process.platform;
let sandboxEnv = 'no sandbox';
if (process.env.SANDBOX && process.env.SANDBOX !== 'sandbox-exec') {
@@ -529,7 +529,7 @@ export const useSlashCommandProcessor = (
})`;
}
const modelVersion = config?.getModel() || 'Unknown';
- const cliVersion = getCliVersion();
+ const cliVersion = await getCliVersion();
addMessage({
type: MessageType.ABOUT,
timestamp: new Date(),
@@ -543,7 +543,7 @@ export const useSlashCommandProcessor = (
{
name: 'bug',
description: 'submit a bug report',
- action: (_mainCommand, _subCommand, args) => {
+ action: async (_mainCommand, _subCommand, args) => {
let bugDescription = _subCommand || '';
if (args) {
bugDescription += ` ${args}`;
@@ -560,8 +560,8 @@ export const useSlashCommandProcessor = (
})`;
}
const modelVersion = config?.getModel() || 'Unknown';
+ const cliVersion = await getCliVersion();
const memoryUsage = formatMemoryUsage(process.memoryUsage().rss);
- const cliVersion = getCliVersion();
const diagnosticInfo = `
## Describe the bug