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