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

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);
}