Open History to see the last commit
type RunStatus = "running" | "interrupted" | TerminalRunStatus;
Defined in: packages/ai/src/activities/chat/middleware/run-store.ts:37
Lifecycle status of one run (one agent turn within a conversation).
interrupted is a human-in-the-loop PAUSE that interrupt-resume continues
from — it is deliberately NOT terminal, and must never be conflated with
aborted (an explicit cancellation).
The two are now written by different hooks and cannot be confused:
'interrupted'is written ONLY bywithPersistence'sonInterrupt, and carries NOfinishedAt(a non-terminal status has not finished).'aborted'is written bywithPersistence'sonAbort, and only for an abort that is an explicit cancel or that is ending the run for good.- A mere client disconnect on a run with durable storage wired writes
NEITHER: the record stays
'running'and gainsdetachedSince, because the agent is still running and a later attach can take it over.
Intent is never inferred from the abort itself — see RUN_CANCEL_REASON and
requestRunCancel in ../cancel.