Commit Graph

5 Commits

Author SHA1 Message Date
Zane Staggs 2ad64887f1 Revert "fix: prevent crashes in long-running Electron sessions"
This reverts commit 460e324fe1.
2026-02-26 12:26:35 -08:00
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
Douwe Osinga a4ad231d60 Jazzcort add timeout (#6772)
Signed-off-by: Jazzcort <jason101011113@gmail.com>
Co-authored-by: Jazzcort <jason101011113@gmail.com>
Co-authored-by: Douwe Osinga <douwe@squareup.com>
2026-01-28 10:59:20 -05:00
Douwe Osinga 710e7f35ed Use errorMessage (#6749)
Co-authored-by: Douwe Osinga <douwe@squareup.com>
2026-01-28 10:29:10 -05:00
Douwe Osinga 0c2127124f Clean room implementation of the chat process (#5079)
Co-authored-by: Douwe Osinga <douwe@squareup.com>
Co-authored-by: Zane <75694352+zanesq@users.noreply.github.com>
2025-10-11 10:45:16 -04:00