AI Conversations – Sidebar Search

[Theme Component] AI Conversations – Sidebar Search (messages-only)

Hey all—just wanted to share a tiny theme component I made (with a push from ChatGPT). It adds a lightweight “AI Messages” search box to the AI Conversations sidebars and routes straight to core search with in:messages.

GitHub: GitHub - BrianCraword/Discourse-AI-Conversations-Search-

What it does

  • Puts a compact search box at the top of the AI Conversations sidebars (main list + single chat).
  • Searches only your messages via /search?q=<keywords> in:messages (no expanded UI).
  • Permissions: shows for logged-in users with Trust Level ≥ 1 (staff always see it).
  • Self-contained styling; doesn’t change your site’s overall look.

Install

  1. Admin → Customize → Themes → Install → From a git repo
  2. Paste the repo URL and install as a component on your active theme.
  3. (Optional) Place your own AI Conversations styling in a separate component; this search is designed to play nicely with custom styles.

Requirements / Notes

  • Tested on Discourse 3.2+.
  • Expects the AI sidebar container to include .ai-conversations-panel (present in the Discourse AI Conversations UI).
  • No settings—kept intentionally simple. If you need TL0 visibility or a different scope token (in:personal), fork and tweak the small initializer.

Not a must-have feature, but some folks will like the convenience. Feedback and PRs welcome!

3 Likes