function isTerminalRunStatus(status): status is TerminalRunStatus;Defined in: packages/ai/src/activities/chat/middleware/run-store.ts:86
Whether status means no further events will be appended. Narrows, so a caller inside the guard can pass status where a TerminalRunStatus is required without a cast.
Object.hasOwn, never in: in walks the prototype chain, so a row whose status column held 'toString' or 'constructor' would be reported terminal. status is TYPED RunStatus, but every value reaching here comes off a user-implemented RunStore and the type is only a claim (see isRunStatus). A false true deletes a live run's journal (@tanstack/ai-sandbox's journal sweep), fails its attach as 'terminal-run' (attach-preflight), and refuses to drive it (stream-to-response.ts).
status is TerminalRunStatus