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

Function shouldNotify

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

Source from the content-addressed store, hash-verified

17}
18
19function shouldNotify(threshold: number): boolean {
20 return process.env.NODE_ENV !== 'test' && !hasRecentInteraction(threshold)
21}
22
23// NOTE: User interaction tracking is now done in App.tsx's processKeysInBatch
24// 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