mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 16:14:40 +00:00
Add trimToSize(maxItems) to: - CachedRichTextParser: trims richTextCache (500) and isMarkdownCache (200) proportionally - CachedRobohash: trims the ImageVector LruCache (100) - Nip11CachedRetriever: trims both the document and empty-placeholder caches (1000 each) Wire all three into AppModules.trim() tiered by OS pressure level: RUNNING_LOW → 50% capacity RUNNING_CRITICAL → 20% capacity UI_HIDDEN+ → evict all (app not visible, safe to clear) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019h2c44rAwexuUEP3kky2F3