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

Function onAbort

src/hooks/useRemoteSession.ts:366–375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

364 // No-op for remote — classifier runs on the container
365 },
366 onAbort() {
367 const response: RemotePermissionResponse = {
368 behavior: 'deny',
369 message: 'User aborted',
370 }
371 manager.respondToPermissionRequest(requestId, response)
372 setToolUseConfirmQueue(queue =>
373 queue.filter(item => item.toolUseID !== request.tool_use_id),
374 )
375 },
376 onAllow(updatedInput, _permissionUpdates, _feedback) {
377 const response: RemotePermissionResponse = {
378 behavior: 'allow',

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected