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

Function onAllow

src/hooks/useInboxPoller.ts:305–320  ·  view source on GitHub ↗
(
              updatedInput: Record<string, unknown>,
              permissionUpdates: PermissionUpdate[],
            )

Source from the content-addressed store, hash-verified

303 )
304 },
305 onAllow(
306 updatedInput: Record<string, unknown>,
307 permissionUpdates: PermissionUpdate[],
308 ) {
309 void sendPermissionResponseViaMailbox(
310 parsed.agent_id,
311 {
312 decision: 'approved',
313 resolvedBy: 'leader',
314 updatedInput,
315 permissionUpdates,
316 },
317 parsed.request_id,
318 teamName,
319 )
320 },
321 onReject(feedback?: string) {
322 void sendPermissionResponseViaMailbox(
323 parsed.agent_id,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected