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

Function recordSuccess

src/utils/permissions/denialTracking.ts:32–38  ·  view source on GitHub ↗
(state: DenialTrackingState)

Source from the content-addressed store, hash-verified

30}
31
32export function recordSuccess(state: DenialTrackingState): DenialTrackingState {
33 if (state.consecutiveDenials === 0) return state // No change needed
34 return {
35 ...state,
36 consecutiveDenials: 0,
37 }
38}
39
40export function shouldFallbackToPrompting(state: DenialTrackingState): boolean {
41 return (

Callers 1

hasPermissionsToUseToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected