MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / tick

Function tick

cli/src/hooks/use-activity-query.ts:442–450  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

440 }
441
442 const tick = () => {
443 if (pauseWhenIdle && !isUserActive(idleThreshold)) {
444 wasIdleRef.current = true
445 return
446 }
447 if (isEntryStale(serializedKey, staleTime)) {
448 void doFetch()
449 }
450 }
451
452 intervalRef.current = setInterval(tick, refetchInterval)
453 return () => {

Callers

nothing calls this directly

Calls 2

isUserActiveFunction · 0.90
isEntryStaleFunction · 0.85

Tested by

no test coverage detected