feat: Add IDE client to /bug & /about if IDE mode is enabled (#6567)

This commit is contained in:
Shreya Keshive
2025-08-19 11:22:21 -07:00
committed by GitHub
parent 9588aa6ef9
commit 4828e4daf1
4 changed files with 21 additions and 2 deletions

View File

@@ -48,6 +48,10 @@ describe('bugCommand', () => {
config: {
getModel: () => 'gemini-pro',
getBugCommand: () => undefined,
getIdeClient: () => ({
getDetectedIdeDisplayName: () => 'VSCode',
}),
getIdeMode: () => true,
},
},
});
@@ -63,6 +67,7 @@ describe('bugCommand', () => {
* **Sandbox Environment:** test
* **Model Version:** gemini-pro
* **Memory Usage:** 100 MB
* **IDE Client:** VSCode
`;
const expectedUrl =
'https://github.com/google-gemini/gemini-cli/issues/new?template=bug_report.yml&title=A%20test%20bug&info=' +
@@ -79,6 +84,10 @@ describe('bugCommand', () => {
config: {
getModel: () => 'gemini-pro',
getBugCommand: () => ({ urlTemplate: customTemplate }),
getIdeClient: () => ({
getDetectedIdeDisplayName: () => 'VSCode',
}),
getIdeMode: () => true,
},
},
});
@@ -94,6 +103,7 @@ describe('bugCommand', () => {
* **Sandbox Environment:** test
* **Model Version:** gemini-pro
* **Memory Usage:** 100 MB
* **IDE Client:** VSCode
`;
const expectedUrl = customTemplate
.replace('{title}', encodeURIComponent('A custom bug'))