From 9aeeb69ab061d4265580d726da6eca3c3c2cb50b Mon Sep 17 00:00:00 2001 From: erikus Date: Wed, 28 Jan 2026 05:32:37 -0800 Subject: [PATCH] feat(cli): include auth method in /bug (#17569) Co-authored-by: Erik Staab Co-authored-by: Bryan Morgan --- packages/cli/src/ui/commands/bugCommand.test.ts | 5 +++++ packages/cli/src/ui/commands/bugCommand.ts | 2 ++ 2 files changed, 7 insertions(+) diff --git a/packages/cli/src/ui/commands/bugCommand.test.ts b/packages/cli/src/ui/commands/bugCommand.test.ts index b88db55d9e..88db905e77 100644 --- a/packages/cli/src/ui/commands/bugCommand.test.ts +++ b/packages/cli/src/ui/commands/bugCommand.test.ts @@ -92,6 +92,7 @@ describe('bugCommand', () => { getHistory: () => [], }), }), + getContentGeneratorConfig: () => ({ authType: 'oauth-personal' }), }, }, }); @@ -106,6 +107,7 @@ describe('bugCommand', () => { * **Operating System:** test-platform v20.0.0 * **Sandbox Environment:** test * **Model Version:** gemini-pro +* **Auth Type:** oauth-personal * **Memory Usage:** 100 MB * **Terminal Name:** Test Terminal * **Terminal Background:** #000000 @@ -133,6 +135,7 @@ describe('bugCommand', () => { getHistory: () => history, }), }), + getContentGeneratorConfig: () => ({ authType: 'vertex-ai' }), storage: { getProjectTempDir: () => '/tmp/gemini', }, @@ -178,6 +181,7 @@ describe('bugCommand', () => { getHistory: () => [], }), }), + getContentGeneratorConfig: () => ({ authType: 'vertex-ai' }), }, }, }); @@ -192,6 +196,7 @@ describe('bugCommand', () => { * **Operating System:** test-platform v20.0.0 * **Sandbox Environment:** test * **Model Version:** gemini-pro +* **Auth Type:** vertex-ai * **Memory Usage:** 100 MB * **Terminal Name:** Test Terminal * **Terminal Background:** #000000 diff --git a/packages/cli/src/ui/commands/bugCommand.ts b/packages/cli/src/ui/commands/bugCommand.ts index b428c66bbf..26ddb7e850 100644 --- a/packages/cli/src/ui/commands/bugCommand.ts +++ b/packages/cli/src/ui/commands/bugCommand.ts @@ -54,6 +54,7 @@ export const bugCommand: SlashCommand = { const kittyProtocol = terminalCapabilityManager.isKittyProtocolEnabled() ? 'Supported' : 'Unsupported'; + const authType = config?.getContentGeneratorConfig()?.authType || 'Unknown'; let info = ` * **CLI Version:** ${cliVersion} @@ -62,6 +63,7 @@ export const bugCommand: SlashCommand = { * **Operating System:** ${osVersion} * **Sandbox Environment:** ${sandboxEnv} * **Model Version:** ${modelVersion} +* **Auth Type:** ${authType} * **Memory Usage:** ${memoryUsage} * **Terminal Name:** ${terminalName} * **Terminal Background:** ${terminalBgColor}