MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / shouldNotify

Function shouldNotify

source code/hooks/useNotifyAfterTimeout.ts:21–23  ·  view source on GitHub ↗
(threshold: number)

Source from the content-addressed store, hash-verified

19}
20
21function shouldNotify(threshold: number): boolean {
22 return process.env.NODE_ENV !== 'test' && !hasRecentInteraction(threshold)
23}
24
25// NOTE: User interaction tracking is now done in App.tsx's processKeysInBatch
26// function, which calls updateLastInteractionTime() when any input is received.

Callers 1

useNotifyAfterTimeoutFunction · 0.85

Calls 1

hasRecentInteractionFunction · 0.85

Tested by

no test coverage detected