picoclaw/pkg
xiaoen 9c72317b9b fix(memory): write meta before JSONL rewrite for crash safety
In SetHistory and Compact, the JSONL file was rewritten before updating
the meta file. If the process crashed between the two writes, the meta
still had a large Skip value pointing past the now-shorter JSONL file,
causing GetHistory to return empty — effectively data loss.

Reverse the order: write meta (with Skip=0) first, then rewrite JSONL.
On crash between the two writes, the old uncompacted file is still
intact and GetHistory reads from line 1, returning stale-but-complete
data. The next operation self-corrects.
2026-02-26 16:13:57 +08:00
..
agent fix: remove redundant tools definitions from system prompt (#771) 2026-02-25 20:44:07 +08:00
auth enable misspell 2026-02-25 21:14:19 +11:00
bus Prevent panic on publish after MessageBus is closed (#223) 2026-02-16 15:04:25 +08:00
channels enable whitespace 2026-02-25 21:31:07 +11:00
config add proxy support for TavilySearchProvider 2026-02-25 22:37:05 +08:00
constants refactor: replace bool map with set-style map for internal channels (#472) 2026-02-19 11:48:17 +01:00
cron feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
devices refactor: cleanup dead code and turn on dead code detection in CI (#515) 2026-02-24 21:52:25 +08:00
health Add health check endpoints (/health and /ready) for container orchestration liveness and readiness probes. (#104) 2026-02-16 11:53:11 +08:00
heartbeat enable goprintffuncname 2026-02-25 21:14:19 +11:00
logger enable prealloc 2026-02-25 21:31:07 +11:00
memory fix(memory): write meta before JSONL rewrite for crash safety 2026-02-26 16:13:57 +08:00
migrate Merge pull request #677 from yinwm/refactor/model-to-model-name 2026-02-24 19:05:40 +08:00
providers Merge pull request #617 from Zhaoyikaiii/fix/repeated-context-reprocessing 2026-02-25 19:51:23 +08:00
routing feat: add multi-agent routing with declarative bindings 2026-02-13 12:12:33 -03:00
session feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
skills translate Chinese comments 2026-02-24 10:27:49 +11:00
state feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
tools Update pkg/tools/web.go 2026-02-25 23:04:41 +08:00
utils test(tools,utils): add ToolRegistry unit tests and fix Truncate panic on negative maxLen (#517) 2026-02-22 21:40:59 +11:00
voice feat(linter): Fix govet linter 2026-02-20 22:35:16 +02:00