MCPcopy
hub / github.com/coder/mux / hasCompletedAgentReport

Function hasCompletedAgentReport

src/common/utils/agentTaskCompletion.ts:18–23  ·  view source on GitHub ↗
(value: AgentTaskCompletionCandidate)

Source from the content-addressed store, hash-verified

16 * but only terminal task states should count as completed so resumed descendants stay visible.
17 */
18export function hasCompletedAgentReport(value: AgentTaskCompletionCandidate): boolean {
19 return (
20 value.taskStatus === "reported" ||
21 (value.taskStatus === "interrupted" && Boolean(value.reportedAt))
22 );
23}

Callers 15

computeSidebarTaskGroupsFunction · 0.90
traverseFunction · 0.90
isVisibleFunction · 0.90
initializeMethod · 0.90
markWorkflowRunEndedMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected