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

Function onAbort

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

Source from the content-addressed store, hash-verified

238 // No-op for teammates (no classifier auto-approval)
239 },
240 onAbort() {
241 if (decisionMade) return
242 decisionMade = true
243 abortController.signal.removeEventListener(
244 'abort',
245 onAbortListener,
246 )
247 reportPermissionWait()
248 resolve({ behavior: 'ask', message: SUBAGENT_REJECT_MESSAGE })
249 },
250 async onAllow(
251 updatedInput: Record<string, unknown>,
252 permissionUpdates: PermissionUpdate[],

Callers

nothing calls this directly

Calls 2

reportPermissionWaitFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected