mirror of
https://github.com/discourse/discourse.git
synced 2026-08-14 13:58:53 +08:00
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`. |
||
|---|---|---|
| .. | ||
| ai-errors-test.js | ||
| ai-feature-setting-groups-test.js | ||
| ai-streamer-test.js | ||
| diff-streamer-test.js | ||
| llm-provider-param-helpers-test.js | ||
| search-discoveries-context-test.js | ||
| smooth-streamer-test.js | ||
| utilities-test.js | ||