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

Function onAbort

src/hooks/useDirectConnect.ts:122–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 // No-op for remote
121 },
122 onAbort() {
123 const response: RemotePermissionResponse = {
124 behavior: 'deny',
125 message: 'User aborted',
126 }
127 manager.respondToPermissionRequest(requestId, response)
128 setToolUseConfirmQueue(queue =>
129 queue.filter(item => item.toolUseID !== request.tool_use_id),
130 )
131 },
132 onAllow(updatedInput, _permissionUpdates, _feedback) {
133 const response: RemotePermissionResponse = {
134 behavior: 'allow',

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected