Use 2-space indent for saved checkpoint files (#1152) (#1977)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
Billy Biggs 2025-06-27 06:39:27 -07:00 committed by GitHub
parent a943cee45d
commit 582b4861a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ export class Logger {
}
const path = this._checkpointPath(tag);
try {
await fs.writeFile(path, JSON.stringify(conversation, null), 'utf-8');
await fs.writeFile(path, JSON.stringify(conversation, null, 2), 'utf-8');
} catch (error) {
console.error('Error writing to checkpoint file:', error);
}