Skip to content

Holds: counted, labelled work-in-progress that refreshes without input #10

Description

@dmythro

Why

Some work has no input for minutes (a payment awaited on a terminal, an upload, a background job the page is watching) and must never be interrupted by an idle timeout.

Proposal

const release = keeper.hold('checkout')   // counted, labelled
release()
  • An open hold counts as activity for the planner: the session is refreshed with no input at all.
  • Expose holds (count + labels) in state for debugging.
  • React: useSessionHold(active: boolean, label?: string) acquires while active is true and releases on change/unmount.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions