MCPcopy Create free account
hub / github.com/xerrors/Yuxi / hasPendingInterruptForRun

Function hasPendingInterruptForRun

web/src/composables/useAgentRunStream.js:154–158  ·  view source on GitHub ↗
(threadState, runId)

Source from the content-addressed store, hash-verified

152 }
153
154 const hasPendingInterruptForRun = (threadState, runId) => {
155 const pendingInterrupt = threadState?.pendingInterrupt
156 if (!pendingInterrupt?.questions?.length) return false
157 return !pendingInterrupt.parentRunId || pendingInterrupt.parentRunId === runId
158 }
159
160 const hasPendingInterruptInThreads = (threadIds, runId) => {
161 return [...threadIds].some((id) => hasPendingInterruptForRun(getThreadState(id), runId))

Callers 3

resumeActiveRunForThreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected