Commit Graph

21 Commits

Author SHA1 Message Date
lukaszraczylo 03bc296ab4 Increase tests coverage. 2025-12-17 11:40:08 +00:00
lukaszraczylo 2084a28548 Add restart command, fix post-update restarts as well. 2025-12-17 10:58:38 +00:00
lukaszraczylo d8a4939201 Prevent endless loops during connectivity issues. 2025-12-17 02:39:04 +00:00
lukaszraczylo 378e7dc489 Don't store system / agent summaries. 2025-12-16 19:15:31 +00:00
lukaszraczylo b396d05c0f Fixes onnx version mismatch, vectordb not liking it and dashboard
Fixes summaries not being generated and timeline showing all observations
despite of project filter being applied.
2025-12-16 18:29:09 +00:00
lukaszraczylo 5c7b623585 Dynamically download ONNX libraries from microshit's website. 2025-12-16 12:11:00 +00:00
lukaszraczylo db528b2544 Release local embeddings and local sqlite-vec without need for chroma. 2025-12-16 11:53:02 +00:00
lukaszraczylo 7fe679f83b Move from chroma to sqlitevec with local embedding 2025-12-16 11:28:26 +00:00
lukaszraczylo 6c28ecb22a Additional abstractions for both sqlite and chroma. 2025-12-16 01:36:43 +00:00
lukaszraczylo 7e49113d24 Dashboard and sdk processor improvements. 2025-12-16 01:00:23 +00:00
lukaszraczylo e52f3284ba Improvements to the queue processing. 2025-12-16 00:49:35 +00:00
lukaszraczylo 085c2cb3d0 Move SDK processing to async queue. 2025-12-16 00:29:45 +00:00
lukaszraczylo d68a700917 Add the statusline. Fix the installation. 2025-12-16 00:15:25 +00:00
lukaszraczylo c705449467 Fix the issue with hanging browser tab. 2025-12-15 14:09:38 +00:00
lukaszraczylo 268c286859 HTTP and SSE dead client fix
Fix 1: HTTP Server timeouts (service.go)
  - Added IdleTimeout: 120s - closes idle keep-alive connections
  - Added ReadTimeout: 30s - prevents hung connections waiting for request data

  Fix 2: SSE dead client cleanup (broadcaster.go) - This was the real leak
  - Bug: When Write() failed on a disconnected client, it just logged and continued - the dead client stayed in the clients map forever
  - Effect: Dead clients accumulated and every Broadcast() call would try (and fail) to write to them
  - Fix: Now tracks failed writes and removes dead clients from the map

  The SSE bug was likely the main cause. Every time a browser tab closed or connection dropped, the client stayed registered. On each broadcast (processing status updates happen frequently), it would try to write to dead connections, fail, but never clean up.
2025-12-15 13:17:46 +00:00
lukaszraczylo 0eca679139 Startup and update sequence
1. Version mismatch restart loop (pkg/hooks/worker.go):
    - Added versionsCompatible() and extractBaseVersion() functions
    - Hooks no longer restart worker when base versions match (e.g., v0.3.5-dirty ≈ v0.3.5-2-gca711a8-dirty)
2. Auto-update detection (internal/update/update.go):
    - isNewerVersion() now extracts base version before comparing
    - No longer always reports updates for dirty/dev builds
3. Non-blocking ChromaDB sync (internal/worker/handlers.go):
    - SyncUserPrompt now runs in a goroutine with 10-second timeout
    - /api/sessions/init responds immediately without waiting for ChromaDB
2025-12-15 11:02:53 +00:00
lukaszraczylo ca711a8a7e Fix autoupdate, add healtcheck status to the dashboard 2025-12-15 01:34:56 +00:00
lukaszraczylo bbd6c3f1ff Hotfix: Auto update capability. 2025-12-15 01:17:07 +00:00
lukaszraczylo a1c1a5cad5 Add placeholder for the build to progress. 2025-12-15 00:57:44 +00:00
lukaszraczylo 3a223da320 Release to the world. 2025-12-15 00:50:42 +00:00
lukaszraczylo feb7f251b4 Initial commit 2025-12-15 00:50:33 +00:00