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

Function stopRunStreamSubscription

web/src/composables/useAgentRunStream.js:134–142  ·  view source on GitHub ↗
(threadId)

Source from the content-addressed store, hash-verified

132 }
133
134 const stopRunStreamSubscription = (threadId) => {
135 const ts = getThreadState(threadId)
136 if (!ts) return
137 streamSmoother?.flushThread(threadId)
138 if (ts.runStreamAbortController) {
139 ts.runStreamAbortController.abort()
140 ts.runStreamAbortController = null
141 }
142 }
143
144 const notifyInterruptDetected = (threadId, runId, run = null) => {
145 if (typeof onInterruptDetected !== 'function') return

Callers 2

startRunStreamFunction · 0.85
resumeActiveRunForThreadFunction · 0.85

Calls 1

getThreadStateFunction · 0.85

Tested by

no test coverage detected