Skip to content

Prevent sleep while running for increased reliability #663

Description

@KayleeWilliams

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions