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

Function onReject

src/hooks/useDirectConnect.ts:143–152  ·  view source on GitHub ↗
(feedback?: string)

Source from the content-addressed store, hash-verified

141 setIsLoading(true)
142 },
143 onReject(feedback?: string) {
144 const response: RemotePermissionResponse = {
145 behavior: 'deny',
146 message: feedback ?? 'User denied permission',
147 }
148 manager.respondToPermissionRequest(requestId, response)
149 setToolUseConfirmQueue(queue =>
150 queue.filter(item => item.toolUseID !== request.tool_use_id),
151 )
152 },
153 async recheckPermission() {
154 // No-op for remote
155 },

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected