(threadId)
| 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 |
no test coverage detected