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

Function shouldShowUndercoverAutoNotice

src/utils/undercover.ts:80–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 * flag on mount.
79 */
80export function shouldShowUndercoverAutoNotice(): boolean {
81 if (process.env.USER_TYPE === 'ant') {
82 // If forced via env, user already knows; don't nag.
83 if (isEnvTruthy(process.env.CLAUDE_CODE_UNDERCOVER)) return false
84 if (!isUndercover()) return false
85 if (getGlobalConfig().hasSeenUndercoverAutoNotice) return false
86 return true
87 }
88 return false
89}
90

Callers 1

REPLFunction · 0.85

Calls 3

isEnvTruthyFunction · 0.85
isUndercoverFunction · 0.85
getGlobalConfigFunction · 0.85

Tested by

no test coverage detected