AgentPauseControl
stablePause/resume control for in-flight agents with execution state preservation — shows step count and last completed action when paused
import { AgentPauseControl } from "@nodus/design-system/patterns"Props
| Prop | Type | Default | Description |
|---|---|---|---|
agentreq | string | — | Agent name. |
taskreq | string | — | High-level task description. |
currentStepreq | number | — | Current step (1-based). |
totalStepsreq | number | — | Total execution steps. |
lastCompletedStepreq | string | — | Last completed step — shown as preserved state when paused. |
currentActionreq | string | — | Current agent action — shown while running. |
startedAtreq | string | — | Execution start timestamp. |
status | "running" | "paused" | "resuming" | — | Controlled status. Omit for internal state. |
onPause | () => void | — | Called on pause. |
onResume | () => void | — | Called on resume. |
agentrequiredstringDefault —Agent name.
taskrequiredstringDefault —High-level task description.
currentSteprequirednumberDefault —Current step (1-based).
totalStepsrequirednumberDefault —Total execution steps.
lastCompletedSteprequiredstringDefault —Last completed step — shown as preserved state when paused.
currentActionrequiredstringDefault —Current agent action — shown while running.
startedAtrequiredstringDefault —Execution start timestamp.
status"running" | "paused" | "resuming"Default —Controlled status. Omit for internal state.
onPause() => voidDefault —Called on pause.
onResume() => voidDefault —Called on resume.
This component was designed to express:
Explore Related
Mid-execution goal redirect — shows agent progress, struck-through original goal, and preview of new goal before confirming
High-stakes override with consequence preview and mandatory acknowledgment — no blind overrides, consequences always shown first
Ordered task list with status tracking and priority
Recovery breadcrumb timeline showing every step an agent attempted after hitting a dead end