CLI now holds a GET /api/internal/agent/wake connection open. When the server calls triggerWake(userId) — on stream request, download queue, pause, cancel, resume, scan, etc. — the CLI receives the signal immediately and fires a sync cycle in <100ms instead of waiting up to 10s for the next scheduled interval. - Add WaitForWake(ctx) to Client using a no-timeout HTTP client - Add runWakeListener goroutine to SyncClient (auto-reconnects) - Start wake listener from SyncClient.Run() Closes: sub-second stream latency from the web UI |
||
|---|---|---|
| .. | ||
| agent | ||
| arr | ||
| cmd | ||
| config | ||
| engine | ||
| library | ||
| mediaserver | ||
| parser | ||
| sentry | ||
| ui | ||
| upgrade | ||
| usenet | ||