MCPcopy Create free account
hub / github.com/freecodexyz/free-code / sendControlResponseError

Function sendControlResponseError

src/cli/print.ts:2750–2762  ·  view source on GitHub ↗
(
    message: SDKControlRequest,
    errorMessage: string,
  )

Source from the content-addressed store, hash-verified

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

Callers 1

runHeadlessStreamingFunction · 0.85

Calls 1

enqueueMethod · 0.45

Tested by

no test coverage detected