MCPcopy Create free account
hub / github.com/Noumena-Network/code / isTerminalStatus

Function isTerminalStatus

src/components/tasks/taskStatusUtils.tsx:17–19  ·  view source on GitHub ↗
(status: TaskStatus)

Source from the content-addressed store, hash-verified

15 * Returns true if the given task status represents a terminal (finished) state.
16 */
17export function isTerminalStatus(status: TaskStatus): boolean {
18 return status === 'completed' || status === 'failed' || status === 'killed';
19}
20
21/**
22 * Returns the appropriate icon for a task based on status and state flags.

Callers 1

AgentLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected