mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-20 02:00:40 -07:00
feat(core): migrate chat recording to JSONL streaming (#23749)
This commit is contained in:
@@ -98,8 +98,11 @@ export async function deleteSubagentSessionDirAndArtifactsAsync(
|
||||
});
|
||||
|
||||
for (const file of files) {
|
||||
if (file.isFile() && file.name.endsWith('.json')) {
|
||||
const agentId = path.basename(file.name, '.json');
|
||||
if (
|
||||
file.isFile() &&
|
||||
(file.name.endsWith('.json') || file.name.endsWith('.jsonl'))
|
||||
) {
|
||||
const agentId = path.basename(file.name, path.extname(file.name));
|
||||
await deleteSessionArtifactsAsync(agentId, tempDir);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user