core: write only new history and share files on Windows
The store rewrote all of history.json, 19 MB here, on every 60 s refresh. It now appends each refresh's changes to a journal and compacts into monthly files and a state checkpoint at 8 MiB, so an idle refresh writes only snapshot.json. Bucket updates are keyed, unchanged limit samples are kept at most hourly, Codex replays are bounded by session totals, and Claude dedupe keys expire after 60 days. Readers of atomically replaced files allow delete sharing, and the replace retries briefly, so the Stream Deck plugin reading snapshot.json cannot make a refresh fail. Claude's <synthetic> entries are skipped, and repeated diagnostics fold into one entry with a count. Refs #1
This commit is contained in:
@@ -101,7 +101,7 @@ public class ParserTests
|
||||
{
|
||||
var diagnostics = new DiagnosticLog(capacity: 2);
|
||||
for (var i = 0; i < 4; i++) TranscriptParser.Parse("private fixture text", diagnostics);
|
||||
Assert.Equal(2, diagnostics.Recent.Count);
|
||||
Assert.Equal(4, Assert.Single(diagnostics.Recent).Count);
|
||||
Assert.All(diagnostics.Recent, d => Assert.DoesNotContain("private fixture", d.Summary));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user