Smoother AI search suggestions and clearer error messages

This update makes the AI-powered search suggestions work more reliably and makes it easier to spot and fix issues when they happen.

**More robust search terms handling**
We’ve improved how search terms from AI responses are processed to make sure they’re always treated as text before searching the database. This means no more hiccups or errors when unexpected input types come through.

**Cleaner, friendlier interface**
The AI suggestion box now has some extra padding so that completion badges don't get cut off, making the list easier to read and interact with.

**Better error visibility for faster fixes**
When errors occur on the server side, detailed information now appears in the client console. This gives developers clearer clues to what went wrong, speeding up troubleshooting and improvements.