From e4a257cea0173d1dd984f91e3a16adcc7a8e9e24 Mon Sep 17 00:00:00 2001 From: Argenis Date: Mon, 16 Feb 2026 16:16:07 -0500 Subject: [PATCH] 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.