Fix: Resolve CLI version reporting in /bug command (#455)

This commit is contained in:
Allen Hutchison
2025-05-21 13:31:18 -07:00
committed by GitHub
parent 00ab1905e0
commit a0761f0c41
3 changed files with 9 additions and 6 deletions

View File

@@ -102,6 +102,7 @@ describe('useSlashCommandProcessor', () => {
mockOpenThemeDialog,
mockPerformMemoryRefresh,
mockCorgiMode,
'test-version',
),
);
return result.current;
@@ -248,7 +249,7 @@ describe('useSlashCommandProcessor', () => {
sandboxEnvVar?: string,
seatbeltProfileVar?: string,
) => {
const cliVersion = process.env.npm_package_version || 'Unknown';
const cliVersion = 'test-version';
const osVersion = `${process.platform} ${process.version}`;
let sandboxEnvStr = 'no sandbox';
if (sandboxEnvVar && sandboxEnvVar !== 'sandbox-exec') {