(
message: SDKControlRequest,
errorMessage: string,
)
| 2780 | } |
| 2781 | |
| 2782 | const sendControlResponseError = function ( |
| 2783 | message: SDKControlRequest, |
| 2784 | errorMessage: string, |
| 2785 | ) { |
| 2786 | output.enqueue({ |
| 2787 | type: 'control_response', |
| 2788 | response: { |
| 2789 | subtype: 'error', |
| 2790 | request_id: message.request_id, |
| 2791 | error: errorMessage, |
| 2792 | }, |
| 2793 | }) |
| 2794 | } |
| 2795 | |
| 2796 | // Handle unexpected permission responses by looking up the unresolved tool |
| 2797 | // call in the transcript and executing it |
no test coverage detected