MCPcopy
hub / github.com/codeaashu/claude-code / onReject

Function onReject

src/utils/swarm/inProcessRunner.ts:292–304  ·  view source on GitHub ↗
(feedback?: string, contentBlocks?: ContentBlockParam[])

Source from the content-addressed store, hash-verified

290 })
291 },
292 onReject(feedback?: string, contentBlocks?: ContentBlockParam[]) {
293 if (decisionMade) return
294 decisionMade = true
295 abortController.signal.removeEventListener(
296 'abort',
297 onAbortListener,
298 )
299 reportPermissionWait()
300 const message = feedback
301 ? `${SUBAGENT_REJECT_MESSAGE_WITH_REASON_PREFIX}${feedback}`
302 : SUBAGENT_REJECT_MESSAGE
303 resolve({ behavior: 'ask', message, contentBlocks })
304 },
305 async recheckPermission() {
306 if (decisionMade) return
307 const freshResult = await hasPermissionsToUseTool(

Callers

nothing calls this directly

Calls 3

reportPermissionWaitFunction · 0.85
cleanupFunction · 0.70
resolveFunction · 0.50

Tested by

no test coverage detected