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 5f034e58af
commit b36e4eb1eb

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