MCPcopy Create free account
hub / github.com/freecodexyz/free-code / onReject

Function onReject

src/hooks/useRemoteSession.ts:388–397  ·  view source on GitHub ↗
(feedback?: string)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected