MCPcopy Create free account
hub / github.com/Noumena-Network/code / onAbort

Function onAbort

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

reportPermissionWaitFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected