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

Function onAllow

src/hooks/useSSHSession.ts:133–142  ·  view source on GitHub ↗
(updatedInput)

Source from the content-addressed store, hash-verified

131 )
132 },
133 onAllow(updatedInput) {
134 manager.respondToPermissionRequest(requestId, {
135 behavior: 'allow',
136 updatedInput,
137 })
138 setToolUseConfirmQueue(q =>
139 q.filter(i => i.toolUseID !== request.tool_use_id),
140 )
141 setIsLoading(true)
142 },
143 onReject(feedback) {
144 manager.respondToPermissionRequest(requestId, {
145 behavior: 'deny',

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected