Currently when running long-tasks there is a risk of the device falling asleep, this can cause connection issues & interrupt the active task. This is a feature I've found useful on the Codex app.
We should ensure it only runs while a thread is active/running.
I think this would use https://www.electronjs.org/docs/latest/api/power-save-blocker ? And we'd want to use prevent-app-suspension so the app isn't suspended but the screen etc can still turn off e.g. so policies like auto-locking the device after 10 mins of inactivity isn't affected by long running tasks.
I can work on this feature in my free time if needed.
Currently when running long-tasks there is a risk of the device falling asleep, this can cause connection issues & interrupt the active task. This is a feature I've found useful on the Codex app.
We should ensure it only runs while a thread is active/running.
I think this would use https://www.electronjs.org/docs/latest/api/power-save-blocker ? And we'd want to use
prevent-app-suspensionso the app isn't suspended but the screen etc can still turn off e.g. so policies like auto-locking the device after 10 mins of inactivity isn't affected by long running tasks.I can work on this feature in my free time if needed.