(
message: SDKControlRequest,
errorMessage: string,
)
| 2748 | } |
| 2749 | |
| 2750 | const sendControlResponseError = function ( |
| 2751 | message: SDKControlRequest, |
| 2752 | errorMessage: string, |
| 2753 | ) { |
| 2754 | output.enqueue({ |
| 2755 | type: 'control_response', |
| 2756 | response: { |
| 2757 | subtype: 'error', |
| 2758 | request_id: message.request_id, |
| 2759 | error: errorMessage, |
| 2760 | }, |
| 2761 | }) |
| 2762 | } |
| 2763 | |
| 2764 | // Handle unexpected permission responses by looking up the unresolved tool |
| 2765 | // call in the transcript and executing it |
no test coverage detected