MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getSessionsSinceLastShown

Function getSessionsSinceLastShown

src/services/tips/tipHistory.ts:12–17  ·  view source on GitHub ↗
(tipId: string)

Source from the content-addressed store, hash-verified

10}
11
12export function getSessionsSinceLastShown(tipId: string): number {
13 const config = getGlobalConfig()
14 const lastShown = config.tipsHistory?.[tipId]
15 if (!lastShown) return Infinity
16 return config.numStartups - lastShown
17}
18

Callers 2

getRelevantTipsFunction · 0.85

Calls 1

getGlobalConfigFunction · 0.85

Tested by

no test coverage detected