MCPcopy Create free account
hub / github.com/Noumena-Network/code / sendControlCancelRequest

Function sendControlCancelRequest

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

Source from the content-addressed store, hash-verified

836 logForDebugging('[remote-bridge] Sent control_response')
837 },
838 sendControlCancelRequest(requestId: string) {
839 if (authRecoveryInFlight) {
840 logForDebugging(
841 `[remote-bridge] Dropping control_cancel_request during 401 recovery: ${requestId}`,
842 )
843 return
844 }
845 const event = {
846 type: 'control_cancel_request' as const,
847 request_id: requestId,
848 session_id: sessionId,
849 }
850 // Hook/classifier/channel/recheck resolved the permission locally —
851 // interactiveHandler calls only cancelRequest (no sendResponse) on
852 // those paths, so without this the server stays on requires_action.
853 transport.reportState('running')
854 void transport.write(event)
855 logForDebugging(
856 `[remote-bridge] Sent control_cancel_request request_id=${requestId}`,
857 )
858 },
859 sendResult() {
860 if (authRecoveryInFlight) {
861 logForDebugging('[remote-bridge] Dropping result during 401 recovery')

Callers

nothing calls this directly

Calls 3

reportStateMethod · 0.80
logForDebuggingFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected