(updates: PermissionUpdate[])
| 137 | }) |
| 138 | }, |
| 139 | async persistPermissions(updates: PermissionUpdate[]) { |
| 140 | if (updates.length === 0) return false |
| 141 | persistPermissionUpdates(updates) |
| 142 | const appState = toolUseContext.getAppState() |
| 143 | setToolPermissionContext( |
| 144 | applyPermissionUpdates(appState.toolPermissionContext, updates), |
| 145 | ) |
| 146 | return updates.some(update => supportsPersistence(update.destination)) |
| 147 | }, |
| 148 | resolveIfAborted(resolve: (decision: PermissionDecision) => void) { |
| 149 | if (!toolUseContext.abortController.signal.aborted) return false |
| 150 | this.logCancelled() |
nothing calls this directly
no test coverage detected