fix(core): add null check for recordingService in sessionLearningsService

This commit is contained in:
Aishanee Shah
2026-02-11 18:27:00 +00:00
parent 4e60c886d2
commit d872e9dcfd

View File

@@ -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) {