MCPcopy Index your code
hub / github.com/codeaashu/claude-code / sendControlCancelRequest

Function sendControlCancelRequest

src/bridge/remoteBridgeCore.ts:852–872  ·  view source on GitHub ↗
(requestId: string)

Source from the content-addressed store, hash-verified

850 logForDebugging('[remote-bridge] Sent control_response')
851 },
852 sendControlCancelRequest(requestId: string) {
853 if (authRecoveryInFlight) {
854 logForDebugging(
855 `[remote-bridge] Dropping control_cancel_request during 401 recovery: ${requestId}`,
856 )
857 return
858 }
859 const event = {
860 type: 'control_cancel_request' as const,
861 request_id: requestId,
862 session_id: sessionId,
863 }
864 // Hook/classifier/channel/recheck resolved the permission locally —
865 // interactiveHandler calls only cancelRequest (no sendResponse) on
866 // those paths, so without this the server stays on requires_action.
867 transport.reportState('running')
868 void transport.write(event)
869 logForDebugging(
870 `[remote-bridge] Sent control_cancel_request request_id=${requestId}`,
871 )
872 },
873 sendResult() {
874 if (authRecoveryInFlight) {
875 logForDebugging('[remote-bridge] Dropping result during 401 recovery')

Callers

nothing calls this directly

Calls 3

logForDebuggingFunction · 0.85
reportStateMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected