refactor: add gemini jsonl session support

This commit is contained in:
Haileyesus
2026-04-29 19:21:57 +03:00
parent c7d4fa915e
commit 0595ba8fed
3 changed files with 589 additions and 65 deletions

View File

@@ -66,7 +66,7 @@ let watcherRescheduleAfterRefresh = false;
*/
function isWatcherTargetFile(provider: LLMProvider, filePath: string): boolean {
if (provider === 'gemini') {
return filePath.endsWith('.json');
return filePath.endsWith('.json') || filePath.endsWith('.jsonl');
}
return filePath.endsWith('.jsonl');
@@ -194,6 +194,10 @@ async function onUpdate(
return;
}
console.log(`Session synchronization triggered by ${eventType} event for provider "${provider}"`, {
filePath,
sessionId: result.sessionId,
});
queuePendingWatcherUpdate(eventType, provider, result.sessionId);
} catch (error) {
const message = error instanceof Error ? error.message : String(error);