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

Function onReject

source code/hooks/useRemoteSession.ts:390–399  ·  view source on GitHub ↗
(feedback?: string)

Source from the content-addressed store, hash-verified

388 setIsLoading(true)
389 },
390 onReject(feedback?: string) {
391 const response: RemotePermissionResponse = {
392 behavior: 'deny',
393 message: feedback ?? 'User denied permission',
394 }
395 manager.respondToPermissionRequest(requestId, response)
396 setToolUseConfirmQueue(queue =>
397 queue.filter(item => item.toolUseID !== request.tool_use_id),
398 )
399 },
400 async recheckPermission() {
401 // No-op for remote — permission state is on the container
402 },

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected