mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
fetchConversationWithMessages now returns the decrypted rolling summary (fail-closed → null), and buildHistoryWindow substitutes it for the dead placeholder so a long conversation keeps memory of its elided turns. Once a conversation grows past the turn cap the chat turn fires a fire-and-forget coach-memory-refresh so the next long turn is fresh, without adding a provider round-trip to the interactive reply. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>