## Context `Dechat/dex_with_fiat_frontend/src/lib/chatSearch.ts`. ## Acceptance criteria - [ ] Root cause is identified and described in the PR body - [ ] A regression test reproduces the bug before the fix and passes after - [ ] No `any` casts are introduced — `pnpm typecheck` stays clean - [ ] Error paths surface a user-visible message rather than failing silently - [ ] `pnpm test:unit` passes
Context
Dechat/dex_with_fiat_frontend/src/lib/chatSearch.ts.Acceptance criteria
anycasts are introduced —pnpm typecheckstays cleanpnpm test:unitpasses