summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/commands/bugCommand.ts
diff options
context:
space:
mode:
authorShreya Keshive <[email protected]>2025-08-19 11:22:21 -0700
committerGitHub <[email protected]>2025-08-19 18:22:21 +0000
commit4828e4daf198a675ce118cec08dcfbd0bfbb28a6 (patch)
tree9a4441cea7a3aab3553175c9a9b310d4d5ffa732 /packages/cli/src/ui/commands/bugCommand.ts
parent9588aa6ef971918b8acfeefdad4f6a33f93349cf (diff)
feat: Add IDE client to /bug & /about if IDE mode is enabled (#6567)
Diffstat (limited to 'packages/cli/src/ui/commands/bugCommand.ts')
-rw-r--r--packages/cli/src/ui/commands/bugCommand.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/cli/src/ui/commands/bugCommand.ts b/packages/cli/src/ui/commands/bugCommand.ts
index 8529e12b..c5f559b6 100644
--- a/packages/cli/src/ui/commands/bugCommand.ts
+++ b/packages/cli/src/ui/commands/bugCommand.ts
@@ -37,8 +37,12 @@ export const bugCommand: SlashCommand = {
const modelVersion = config?.getModel() || 'Unknown';
const cliVersion = await getCliVersion();
const memoryUsage = formatMemoryUsage(process.memoryUsage().rss);
+ const ideClient =
+ (context.services.config?.getIdeMode() &&
+ context.services.config?.getIdeClient()?.getDetectedIdeDisplayName()) ||
+ '';
- const info = `
+ let info = `
* **CLI Version:** ${cliVersion}
* **Git Commit:** ${GIT_COMMIT_INFO}
* **Session ID:** ${sessionId}
@@ -47,6 +51,9 @@ export const bugCommand: SlashCommand = {
* **Model Version:** ${modelVersion}
* **Memory Usage:** ${memoryUsage}
`;
+ if (ideClient) {
+ info += `* **IDE Client:** ${ideClient}\n`;
+ }
let bugReportUrl =
'https://github.com/google-gemini/gemini-cli/issues/new?template=bug_report.yml&title={title}&info={info}';