0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-12 05:37:26 +08:00
discourse/plugins/discourse-ai/test/javascripts/unit
Rafael dos Santos Silva c863cd0820
FIX: Skip discovery search when header search is scoped to PMs (#40172)
Previously, the AI discovery (semantic) search still triggered from the
header search when the user narrowed their query to private messages
with an `in:messages` / `in:personal` / `in:personal-direct` /
`in:all-pms` filter.

This change extends `isScopedSearch` to detect PM filters in the search
term via a new shared `searchTermScopesToPMs` helper in
`discourse/lib/search`, which also replaces the duplicated regex in
`SearchMenu#isPMOnly` and `FullPageSearch#isPMOnly`.
2026-05-19 14:53:25 -03:00
..
components FEATURE: Append limited search results with semantic search (#35446) 2025-10-16 09:27:31 -07:00
controllers REFACTOR: convert AI feature settings to formkit (#36850) 2026-01-05 16:28:24 -05:00
lib FIX: Skip discovery search when header search is scoped to PMs (#40172) 2026-05-19 14:53:25 -03:00
models DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
routes DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
services FEATURE: Star AI bot conversations in sidebar (#39869) 2026-05-14 15:04:31 +10:00