460e324fe1
Renderer process:
- Add weight-based LRU cache (cap 5) to resultsCache in useChatStream
- Only write to cache when chat is idle, not on every streamed chunk
- Wire activeSessions tab eviction to clear cache entries
- Delete unused sessionCache.ts (dead code, never imported)
Main process:
- Skip stderr Buffer.toString() after startup unless fatal error detected
via byte-level Buffer.includes scan — avoids converting 2GB+ of goosed
tracing output to V8 strings over long sessions
- Cap errorLog at 200 lines to prevent unbounded array growth
- Add stdout size guard while preserving cert fingerprint extraction
- Replace spawn('cat') with fs.readFile in read-file IPC handler
- Defer string conversion in check-ollama to stream close