Skip to content

Pause suspend-on-idle during long-running sessions #700

Description

@rafaeldff

What problem does this solve?

If I kickstart a long-running agentic session and forget to run caffeinate in the background, MacOS will transition the laptop to suspend mode and it will interrupt or delay the work I expected the coding agent to be doing. Even when I remember I have to run caffeinate, it's a cumbersome process, made harder due to the fact that usually the agent will return to the prompt when it finishes, rather than ending a process, which prevents me from passing a PID for caffeinate to watch.

Proposed solution

Supacode is already aware of when the agent hands control back to the user, which is used for notifications. It could offer a toggle to prevent suspend-on-idle when an agent is working.

Alternatives considered

Something similar could be implemented with agent hooks, but it seems natural to have a toggle in the Supacode UI, so we can easily see when it's on or off.

Supacode version

0.10.6

Are you planning to build this yourself?

  • I intend to open a pull request once this is approved and marked ready.

Before submitting

  • I searched existing issues and this is not a duplicate.
  • I understand feature pull requests are closed until the issue is marked ready.
  • I agree to follow this project's Code of Conduct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions