MCPcopy Index your code
hub / github.com/codeaashu/claude-code / recheckPermission

Function recheckPermission

src/utils/swarm/inProcessRunner.ts:305–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

303 resolve({ behavior: 'ask', message, contentBlocks })
304 },
305 async recheckPermission() {
306 if (decisionMade) return
307 const freshResult = await hasPermissionsToUseTool(
308 tool,
309 input,
310 toolUseContext,
311 assistantMessage,
312 toolUseID,
313 )
314 if (freshResult.behavior === 'allow') {
315 decisionMade = true
316 abortController.signal.removeEventListener(
317 'abort',
318 onAbortListener,
319 )
320 reportPermissionWait()
321 setToolUseConfirmQueue(queue =>
322 queue.filter(item => item.toolUseID !== toolUseID),
323 )
324 resolve({
325 ...freshResult,
326 updatedInput: input,
327 userModified: false,
328 })
329 }
330 },
331 },
332 ])
333 })

Callers

nothing calls this directly

Calls 3

hasPermissionsToUseToolFunction · 0.85
reportPermissionWaitFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected