Skip to content

Commit 4a44d7d

Browse files
committed
Bugfix: "Scanning..." stuck after replay
The replay path sets `scanning = true` on the backend (shared flag with full scans) but only emits `index-replay-complete`, not `index-scan-complete`. The frontend's startup `get_index_status` query picks up `scanning: true` during replay, then never clears it because `resetReplay()` only resets replay-specific state. - Clear `scanning` in the `index-replay-complete` handler in `index-state.svelte.ts`
1 parent 72ca9fb commit 4a44d7d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/desktop/src/lib/indexing/index-state.svelte.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ export async function initIndexState(): Promise<void> {
200200
durationMs: number
201201
}>('index-replay-complete', () => {
202202
resetReplay()
203+
scanning = false
203204
})
204205
unlistenHandles.push(unlistenReplayComplete)
205206

0 commit comments

Comments
 (0)