Done
Labels
Milestone
Description
Idea
The server already streams scan status every second over SSE (GET /api/scan/events, routes/scan.py:175-194 — {in_progress, count, directory}), but no client consumes it (it's currently flagged as dead surface in #143). Instead of removing it, wire it up: big scans on network shares currently show only a spinner.
Suggested implementation
- A small
useScanProgress()hook: oneEventSource("/api/scan/events"), opened while a scan is in flight, closed whenin_progressflips false. - Feed live "N files so far" into the existing
ScanStatusStrip(currently a static label inActionBar.tsx:79). - No server changes needed.
Nice synergy: either this issue or #143's "remove it" resolves the dead-endpoint finding — implementing this one turns dead code into a feature.
Activity
fix(server): pre-serialize scan SSE payloads as JSON (#152)
fix(core): type the scan candidate buffer as worker-input tuples (#152)
Merge pull request #234 from falbany/feat/152-scan-progress