Accept an optional query on the protected chats_list route to search loaded chat titles and message logs. Reuse the bundled sidebar search helper for bounded, Unicode-safe literal highlight parts while keeping the normal list response unchanged.
Validate request and query types and limit queries to 200 characters. Blank queries skip scanning. Document the API contract and cover unchanged listing, authentication, validation, and excerpts.
Validation: 29 Core API and shared search-helper tests passed in the live Docker framework. Verified the live CLI client against 400 loaded conversations. Whitespace checks passed.