Add clearer console error messages for memory file migration detection

- Added DETECTED message when legacy memory.json file is found
- Added COMPLETED message when migration finishes successfully
- Improves visibility of backward compatibility migration process

Co-authored-by: Ola Hungerford <olaservo@users.noreply.github.com>
This commit is contained in:
claude[bot]
2025-08-24 03:01:06 +00:00
parent 53104a65e9
commit eb58a522b3

View File

@@ -35,8 +35,9 @@ async function ensureMemoryFilePath(): Promise<string> {
return newMemoryPath;
} catch {
// Old file exists, new file doesn't - migrate
console.error('DETECTED: Found legacy memory.json file, migrating to memory.jsonl for JSONL format compatibility');
await fs.rename(oldMemoryPath, newMemoryPath);
console.error('Migrated memory.json to memory.jsonl for JSONL format compatibility');
console.error('COMPLETED: Successfully migrated memory.json to memory.jsonl');
return newMemoryPath;
}
} catch {