(feedback?: string, contentBlocks?: ContentBlockParam[])
| 291 | }) |
| 292 | }, |
| 293 | onReject(feedback?: string, contentBlocks?: ContentBlockParam[]) { |
| 294 | if (decisionMade) return |
| 295 | decisionMade = true |
| 296 | abortController.signal.removeEventListener( |
| 297 | 'abort', |
| 298 | onAbortListener, |
| 299 | ) |
| 300 | reportPermissionWait() |
| 301 | const message = feedback |
| 302 | ? `${SUBAGENT_REJECT_MESSAGE_WITH_REASON_PREFIX}${feedback}` |
| 303 | : SUBAGENT_REJECT_MESSAGE |
| 304 | resolve({ behavior: 'ask', message, contentBlocks }) |
| 305 | }, |
| 306 | async recheckPermission() { |
| 307 | if (decisionMade) return |
| 308 | const freshResult = await hasPermissionsToUseTool( |
nothing calls this directly
no test coverage detected