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