MCPcopy Create free account
hub / github.com/codeaashu/claude-code / onAbort

Function onAbort

src/hooks/toolPermission/handlers/interactiveHandler.ts:137–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135 }
136 },
137 onAbort() {
138 if (!claim()) return
139 if (bridgeCallbacks && bridgeRequestId) {
140 bridgeCallbacks.sendResponse(bridgeRequestId, {
141 behavior: 'deny',
142 message: 'User aborted',
143 })
144 bridgeCallbacks.cancelRequest(bridgeRequestId)
145 }
146 channelUnsubscribe?.()
147 ctx.logCancelled()
148 ctx.logDecision(
149 { decision: 'reject', source: { type: 'user_abort' } },
150 { permissionPromptStartTimeMs },
151 )
152 resolveOnce(ctx.cancelAndAbort(undefined, true))
153 },
154 async onAllow(
155 updatedInput,
156 permissionUpdates: PermissionUpdate[],

Callers

nothing calls this directly

Calls 2

claimFunction · 0.85
resolveOnceFunction · 0.50

Tested by

no test coverage detected