feat: persist worker-pause state across restarts
Worker pause states can optionally survive app restarts. A new toggle in Settings saves the current pause map to settings/worker_pauses.json; on startup lib.rs restores it before workers are spawned. Backend: new snapshot/replace helpers in indexer.rs, persist functions in commands.rs (get/set_worker_pauses_persist). Frontend: workerPausesPersist store field, load/setWorkerPausesPersist actions, toggle in SettingsModal.
This commit is contained in:
@@ -381,9 +381,11 @@ export async function handleMockCommand(cmd: string, payload?: unknown): Promise
|
||||
case "set_tagging_queue_folder_ids":
|
||||
case "set_muted_folder_ids":
|
||||
case "set_notifications_paused":
|
||||
case "set_worker_pauses_persist":
|
||||
case "set_worker_paused":
|
||||
return null;
|
||||
case "get_notifications_paused":
|
||||
case "get_worker_pauses_persist":
|
||||
case "get_onboarding_completed":
|
||||
return db.scenario !== "empty";
|
||||
case "set_onboarding_completed":
|
||||
|
||||
Reference in New Issue
Block a user