mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-28 14:04:41 -07:00
feat(core): migrate chat recording to JSONL streaming (#23749)
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
createSessionId,
|
||||
type ResumedSessionData,
|
||||
type ConversationRecord,
|
||||
loadConversationRecord,
|
||||
} from '@google/gemini-cli-core';
|
||||
|
||||
import { GeminiCliSession } from './session.js';
|
||||
@@ -55,9 +56,11 @@ export class GeminiCliAgent {
|
||||
const filesToCheck = candidates.length > 0 ? candidates : sessions;
|
||||
|
||||
for (const sessionFile of filesToCheck) {
|
||||
const loaded = await storage.loadProjectTempFile<ConversationRecord>(
|
||||
const absolutePath = path.join(
|
||||
storage.getProjectTempDir(),
|
||||
sessionFile.filePath,
|
||||
);
|
||||
const loaded = await loadConversationRecord(absolutePath);
|
||||
if (loaded && loaded.sessionId === sessionId) {
|
||||
conversation = loaded;
|
||||
filePath = path.join(storage.getProjectTempDir(), sessionFile.filePath);
|
||||
|
||||
Reference in New Issue
Block a user