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

Function renderableSearchText

src/utils/transcriptSearch.ts:24–30  ·  view source on GitHub ↗
(msg: RenderableMessage)

Source from the content-addressed store, hash-verified

22 * .toLowerCase()d the result, re-lowering ~1.5MB on every keystroke
23 * (the backspace hang). Returns '' for non-searchable types. */
24export function renderableSearchText(msg: RenderableMessage): string {
25 const cached = searchTextCache.get(msg)
26 if (cached !== undefined) return cached
27 const result = computeSearchText(msg).toLowerCase()
28 searchTextCache.set(msg, result)
29 return result
30}
31
32function computeSearchText(msg: RenderableMessage): string {
33 let raw = ''

Callers 2

defaultExtractSearchTextFunction · 0.85
MessagesImplFunction · 0.85

Calls 3

computeSearchTextFunction · 0.85
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected