mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-26 21:14:35 -07:00
Fix: Update system instruction when GEMINI.md memory is loaded or refreshed (#12136)
This commit is contained in:
@@ -1020,6 +1020,17 @@ export class Config {
|
||||
return this.geminiClient;
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the system instruction with the latest user memory.
|
||||
* Whenever the user memory (GEMINI.md files) is updated.
|
||||
*/
|
||||
async updateSystemInstructionIfInitialized(): Promise<void> {
|
||||
const geminiClient = this.getGeminiClient();
|
||||
if (geminiClient?.isInitialized()) {
|
||||
await geminiClient.updateSystemInstruction();
|
||||
}
|
||||
}
|
||||
|
||||
getModelRouterService(): ModelRouterService {
|
||||
return this.modelRouterService;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user