mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-12 07:01:09 -07:00
fix(core): add null check for recordingService in sessionLearningsService
This commit is contained in:
@@ -49,6 +49,12 @@ export class SessionLearningsService {
|
||||
|
||||
const geminiClient = this.config.getGeminiClient();
|
||||
const recordingService = geminiClient.getChatRecordingService();
|
||||
|
||||
if (!recordingService) {
|
||||
debugLogger.debug('[SessionLearnings] Recording service not available');
|
||||
return;
|
||||
}
|
||||
|
||||
const conversation = recordingService.getConversation();
|
||||
|
||||
if (!conversation || conversation.messages.length < MIN_MESSAGES) {
|
||||
|
||||
Reference in New Issue
Block a user