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:
parent
53104a65e9
commit
eb58a522b3
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue