From: Anderson A. Giacomolli Date: Mon, 9 Nov 2026 20:29:43 +0000 (-0300) Subject: Rebuild agent memory in date order X-Git-Url: http://git.giacomolli.uk/onechat/commitdiff_plain/a606686934b4028c29dca8e9dae6b2e188cee9c5?ds=sidebyside;hp=a606686934b4028c29dca8e9dae6b2e188cee9c5 Rebuild agent memory in date order A rebuild merges new dated messages with the log of an agent in date order, builds a new memory beside it with the real prompt and cache key, and swaps the directories only when the whole tree is built. The old directory stays as a timestamped backup, and a failed or stopped build leaves it unchanged. Older history can so enter the chat before newer decisions, which keeps the latest word on a thing the newest one. The probe and the rebuild share one build runner with the call limit, the quota stop, the waits before user messages, and the usage report. Memory and the model client keep their own state behind methods. The log takes an explicit date for a message and writes it to the day file of that date. Issue: b0b8bf9 ---