Skip to content

Add Gemini AI assist support (AST-127165)#1456

Open
cx-margarita-levitm wants to merge 4 commits intomainfrom
feature/AST-127165
Open

Add Gemini AI assist support (AST-127165)#1456
cx-margarita-levitm wants to merge 4 commits intomainfrom
feature/AST-127165

Conversation

@cx-margarita-levitm
Copy link
Copy Markdown
Contributor

By submitting a PR to this repository, you agree to the terms within the Checkmarx Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.

Description

Add support to Gemini AI Assist

References

Gemini AI Assist

Testing

Run test with Copilot and Gemini.
Validated that for each case, use relevant DevAssist
Validate that using Checkmarx MCP first

Checklist

  • I have added documentation for new/changed functionality in this PR (if applicable).
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 17, 2026

Logo
Checkmarx One – Scan Summary & Detailsd1a3d240-865f-4dd1-b58f-a418a0a27406

Great job! No new security vulnerabilities introduced in this pull request

}

this.logs.info(`[DEBUG] Final assistant type: ${assistantType}`);
this.logs.info(`[DEBUG] Extension ID: ${this.selectedChatExtensionId}`);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change log level from info to debug .


private setSelectedAIAssistant(userPreferenceAIAssistant: string, copilotAvailable: boolean, geminiAvailable: boolean): string | null {
let assistantType: string | null = null;
this.logs.info(`[DEBUG] setSelectedAIAssistant - copilotAvailable: ${copilotAvailable}, geminiAvailable: ${geminiAvailable}`);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change log level from info to debug .

if (isIDE(constants.kiroAgent)) {
return path.join(homeDir, ".kiro", "settings", "mcp.json");
}
if (isIDE(constants.geminiAgent)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think here we need to check the condition of AI assistant selection and based on that configure mcp

...((isIDE(constants.windsurfAgent) || isIDE(constants.windsurfNextAgent)) ? { serverUrl: fullUrl } : { url: fullUrl }),
headers: {
"cx-origin": isIDE(constants.kiroAgent) ? constants.kiroAgent : (isIDE(constants.windsurfNextAgent) || isIDE(constants.windsurfAgent)) ? constants.windsurfAgent : isIDE(constants.cursorAgent) ? constants.cursorAgent : "VsCode",
"cx-origin": isIDE(constants.kiroAgent) ? constants.kiroAgent :
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

constants.geminiAgent is not IDE - it should pass ide name only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants