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

Function hasRecentInteraction

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

Source from the content-addressed store, hash-verified

13}
14
15function hasRecentInteraction(threshold: number): boolean {
16 return getTimeSinceLastInteraction() < threshold
17}
18
19function shouldNotify(threshold: number): boolean {
20 return process.env.NODE_ENV !== 'test' && !hasRecentInteraction(threshold)

Callers 1

shouldNotifyFunction · 0.85

Calls 1

Tested by

no test coverage detected