MCPcopy Create free account
hub / github.com/codeaashu/claude-code / resolveOnce

Function resolveOnce

src/screens/REPL.tsx:2255–2259  ·  view source on GitHub ↗
(allow: boolean)

Source from the content-addressed store, hash-verified

2253 return new Promise(resolveShouldAllowHost => {
2254 let resolved = false;
2255 function resolveOnce(allow: boolean): void {
2256 if (resolved) return;
2257 resolved = true;
2258 resolveShouldAllowHost(allow);
2259 }
2260
2261 // Queue the local sandbox permission dialog
2262 setSandboxPermissionRequestQueue(prev => [...prev, {

Callers 8

onAllowFunction · 0.50
onRejectFunction · 0.50
onAbortFunction · 0.50
onAllowFunction · 0.50
onRejectFunction · 0.50
recheckPermissionFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected