chore: bump version to 0.1491

This commit is contained in:
arkon
2026-02-12 20:14:01 +01:00
parent 9702739e67
commit f47ae4b80f
20 changed files with 890 additions and 344 deletions
+2 -5
View File
@@ -146,7 +146,6 @@ export class StateStore {
return;
}
this.dirty = false;
this.ensureDir();
const tempPath = this.filePath + '.tmp';
@@ -163,7 +162,6 @@ export class StateStore {
console.error('[StateStore] Circuit breaker OPEN - serialization failing repeatedly');
this.circuitBreakerOpen = true;
}
this.dirty = true;
return;
}
@@ -180,7 +178,8 @@ export class StateStore {
await writeFile(tempPath, json, 'utf-8');
await rename(tempPath, this.filePath);
// Success! Reset failure counter
// Success! Clear dirty flag AFTER write completes
this.dirty = false;
this.consecutiveSaveFailures = 0;
if (this.circuitBreakerOpen) {
console.log('[StateStore] Circuit breaker CLOSED - save succeeded');
@@ -202,8 +201,6 @@ export class StateStore {
console.error('[StateStore] Circuit breaker OPEN - writes failing repeatedly');
this.circuitBreakerOpen = true;
}
this.dirty = true;
}
}