[ide-mode] Thread active file through to system prompt (#4264)

This commit is contained in:
christine betts
2025-07-15 22:20:00 +00:00
committed by GitHub
parent b61016f2a5
commit 222e362fc2
4 changed files with 56 additions and 18 deletions

View File

@@ -238,7 +238,7 @@ export class GeminiClient {
];
try {
const userMemory = this.config.getUserMemory();
const systemInstruction = getCoreSystemPrompt(userMemory);
const systemInstruction = getCoreSystemPrompt(this.config, userMemory);
const generateContentConfigWithThinking = isThinkingSupported(
this.config.getModel(),
)
@@ -354,7 +354,7 @@ export class GeminiClient {
model || this.config.getModel() || DEFAULT_GEMINI_FLASH_MODEL;
try {
const userMemory = this.config.getUserMemory();
const systemInstruction = getCoreSystemPrompt(userMemory);
const systemInstruction = getCoreSystemPrompt(this.config, userMemory);
const requestConfig = {
abortSignal,
...this.generateContentConfig,
@@ -447,7 +447,7 @@ export class GeminiClient {
try {
const userMemory = this.config.getUserMemory();
const systemInstruction = getCoreSystemPrompt(userMemory);
const systemInstruction = getCoreSystemPrompt(this.config, userMemory);
const requestConfig = {
abortSignal,