discourse/plugins/discourse-ai/assets
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
..
javascripts FIX: Skip discovery search when header search is scoped to PMs (#40172) 2026-05-19 14:53:25 -03:00
stylesheets UX: Streaming placeholder and polish bot docked composer (#40090) 2026-05-19 08:26:30 -07:00