mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-17 13:09:07 -04:00
Every useNormalizedQuery with a unique filter opened its own EventSource to /events. Browsers cap HTTP/1.1 connections at 6 per origin, so the UI exhausted the connection pool and RPC POSTs stalled indefinitely. The daemon's /events stream is already a broadcast of every event, so we share one EventSource across all subscribers and fan out in the client. This only affected the web prod build (single origin); dev worked because vite and sd-server were on different ports, and Tauri worked because it uses IPC for subscriptions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>