MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / onAllow

Function onAllow

source code/hooks/useRemoteSession.ts:378–389  ·  view source on GitHub ↗
(updatedInput, _permissionUpdates, _feedback)

Source from the content-addressed store, hash-verified

376 )
377 },
378 onAllow(updatedInput, _permissionUpdates, _feedback) {
379 const response: RemotePermissionResponse = {
380 behavior: 'allow',
381 updatedInput,
382 }
383 manager.respondToPermissionRequest(requestId, response)
384 setToolUseConfirmQueue(queue =>
385 queue.filter(item => item.toolUseID !== request.tool_use_id),
386 )
387 // Resume loading indicator after approving
388 setIsLoading(true)
389 },
390 onReject(feedback?: string) {
391 const response: RemotePermissionResponse = {
392 behavior: 'deny',

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected