Commit Graph

1 Commits

Author SHA1 Message Date
root
62a03e8688 fix: prevent hallucination after failed compaction summary
- Improve FALLBACK_SUMMARY to instruct agent to check CURRENT_WORK.md
- Add clear instructions to read memory files before responding
- Warn against hallucinating non-existent conversations
- Make memory flush prompt explicitly require CURRENT_WORK.md update
- Strengthen system prompt to emphasize this is mandatory

This prevents the agent from continuing conversations that never
happened when compaction summarization fails (e.g., no API key,
network error, etc.).
2026-01-28 21:40:39 +00:00