()
| 123 | * Failures are silently recorded (does not affect normal app usage). |
| 124 | */ |
| 125 | export async function autoStart(): Promise<void> { |
| 126 | const config = cm().load() |
| 127 | if (!config.enabled) return |
| 128 | |
| 129 | try { |
| 130 | await start() |
| 131 | } catch { |
| 132 | // silent failure, lastError already recorded |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | /** |
| 137 | * Set enabled state (persisted) |