Files
picoclaw/pkg
xiaoen e810331dd8 fix(memory): use SetHistory in migration for crash idempotency
MigrateFromJSON previously called AddFullMessage in a loop, then
renamed the .json file to .json.migrated. If the process crashed
after appending some messages but before the rename, a retry would
re-read the same .json and append all messages again — duplicating
whatever was written before the crash.

Switch to SetHistory which atomically replaces the session contents.
A retry after crash overwrites the partial data instead of appending.
2026-02-26 16:15:11 +08:00
..
2026-02-25 21:14:19 +11:00
2026-02-25 21:31:07 +11:00
2026-02-18 21:48:23 +02:00
2026-02-25 21:14:19 +11:00
2026-02-25 21:31:07 +11:00
2026-02-18 21:48:23 +02:00
2026-02-24 10:27:49 +11:00
2026-02-18 21:48:23 +02:00
2026-02-25 23:04:41 +08:00
2026-02-20 22:35:16 +02:00