Files
tkmind_go/ui
Zane Staggs 460e324fe1 fix: prevent crashes in long-running Electron sessions
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
2026-02-26 10:26:15 -08:00
..
2026-02-19 20:54:07 +00:00