(msg: RenderableMessage)
| 23 | // provides its own lowering cache that also handles tool extractSearchText. |
| 24 | const fallbackLowerCache = new WeakMap<RenderableMessage, string>(); |
| 25 | function defaultExtractSearchText(msg: RenderableMessage): string { |
| 26 | const cached = fallbackLowerCache.get(msg); |
| 27 | if (cached !== undefined) return cached; |
| 28 | const lowered = renderableSearchText(msg); |
| 29 | fallbackLowerCache.set(msg, lowered); |
| 30 | return lowered; |
| 31 | } |
| 32 | export type StickyPrompt = { |
| 33 | text: string; |
| 34 | scrollTo: () => void; |
nothing calls this directly
no test coverage detected