MCPcopy
hub / github.com/stravu/crystal / handlePermissionResponse

Function handlePermissionResponse

frontend/src/App.tsx:320–330  ·  view source on GitHub ↗
(requestId: string, behavior: 'allow' | 'deny', _updatedInput?: PermissionInput, message?: string)

Source from the content-addressed store, hash-verified

318 }, []);
319
320 const handlePermissionResponse = async (requestId: string, behavior: 'allow' | 'deny', _updatedInput?: PermissionInput, message?: string) => {
321 try {
322 await API.permissions.respond(requestId, {
323 allow: behavior === 'allow',
324 reason: message
325 });
326 setCurrentPermissionRequest(null);
327 } catch (error) {
328 console.error('Failed to respond to permission request:', error);
329 }
330 };
331
332 return (
333 <ContextMenuProvider>

Callers

nothing calls this directly

Calls 2

respondMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected