MCPcopy
hub / github.com/codeaashu/claude-code / checkHasTrustDialogAccepted

Function checkHasTrustDialogAccepted

src/utils/config.ts:697–703  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

695}
696
697export function checkHasTrustDialogAccepted(): boolean {
698 // Trust only transitions false→true during a session (never the reverse),
699 // so once true we can latch it. false is not cached — it gets re-checked
700 // on every call so that trust dialog acceptance is picked up mid-session.
701 // (lodash memoize doesn't fit here because it would also cache false.)
702 return (_trustAccepted ||= computeTrustDialogAccepted())
703}
704
705function computeTrustDialogAccepted(): boolean {
706 // Check session-level trust (for home directory case where trust is not persisted)

Callers 15

showSetupScreensFunction · 0.85
runFunction · 0.85
StatusLineInnerFunction · 0.85
TrustDialogFunction · 0.85
shouldSkipHookDueToTrustFunction · 0.85
_executeApiKeyHelperFunction · 0.85
runAwsAuthRefreshFunction · 0.85
runGcpAuthRefreshFunction · 0.85

Calls 1

Tested by

no test coverage detected