()
| 160 | } |
| 161 | |
| 162 | function stop(): void { |
| 163 | logForDebugging(`[AgentSummary] Stopping summarization for ${taskId}`) |
| 164 | stopped = true |
| 165 | if (timeoutId) { |
| 166 | clearTimeout(timeoutId) |
| 167 | timeoutId = null |
| 168 | } |
| 169 | if (summaryAbortController) { |
| 170 | summaryAbortController.abort() |
| 171 | summaryAbortController = null |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | // Start the first timer |
| 176 | scheduleNext() |
nothing calls this directly
no test coverage detected