fix(channels): prevent empty messages and tool call markup leakage (#431)

* feat(memory): optimize SQLite performance with production-grade PRAGMAs

- Enable WAL mode for concurrent read/write access
- Set synchronous = NORMAL for 2x faster writes with crash safety
- Enable 8MB mmap for zero-copy reads via OS page cache
- Set in-memory temp_store and 2MB page cache for hot entries
- Applies optimizations to brain.db (memory), jobs.db (cron), and hygiene pruner

* feat: add LLM response cache, memory snapshotting, and WASM sandbox

- Response Cache: Saves tokens by caching repeated prompts in SQLite.
- Memory Snapshot: Human-readable markdown 'soul' backup for Git-native self-preservation and cold-boot recovery.
- WASM Sandbox: Isolated tool execution via wasmi.
- Configurable via wizard and config.toml.
This commit is contained in:
Argenis 2026-02-16 16:16:07 -05:00 committed by GitHub
parent 8b5d55a66c
commit e4a257cea0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

Diff content is not available