picoclaw/pkg/memory
xiaoen f9f726c0c1 fix(memory): fsync appended message for consistent durability
addMsg now calls f.Sync() before f.Close(), matching the durability
guarantee of writeMeta and rewriteJSONL (both use WriteFileAtomic
with fsync). Without this, a power loss could leave the appended
line in the kernel page cache only — lost on reboot.
2026-03-04 19:21:34 +08:00
..
jsonl.go fix(memory): fsync appended message for consistent durability 2026-03-04 19:21:34 +08:00
jsonl_test.go fix(memory): always reconcile line count in TruncateHistory 2026-02-26 16:12:34 +08:00
migration.go fix(memory): use SetHistory in migration for crash idempotency 2026-02-26 16:15:11 +08:00
migration_test.go fix(memory): use SetHistory in migration for crash idempotency 2026-02-26 16:15:11 +08:00
store.go feat(memory): add Compact method for physical JSONL compaction 2026-02-26 08:42:35 +08:00