Search Box: @Name Filter and Autocomplete Inoperative When [in this topic] Selected

HI folks - This is a long-standing defect, like from when we first switched to Discourse. I’m finally getting around to beefing about it.

Repro:
On any topic page, click the magnifying glass then begin by entering @ in the search box. A dropdown of posters’ usernames appears. Continue entering letters and the list auto-filters to just the names that match what you’ve entered. If you keep adding letters eventually the dropdown will filter to zero or just 1 name. And at any point in the successive filtering you can click a name and that auto-completes the @ entry in the search box and you can now continue entering other search commands or words.

All the above is normal and good and wonderful.

Now clear that search box with the little 'x" at far right, or start a fresh search on a different topic page.

Click the “in this topic” switch right below the search box. That moves an x  in this topic entry into the search box. So far so good.

Now type an @. No response. No dropdown of usernames. Enter a couple letters that you know match somebody in the topic. Still no response; no dropdown of usernames.

Now click the little “x” in the x  in this topic item to delete it. It disappears, but the @+couple letters you already entered is still sitting there with no filtered dropdown of matching names. Now add another letter or change the last one and the filter dropdown appears. Miraculous healing.

Bottom line:
The @ name search / filter feature is simply inoperative if the x  in this topic is selected. There’s no obvious reason this should be so. I bet it’s a bug.

FYI for anyone who’s annoyed by this … there is a partial workaround I’ve used.

Instead of clicking the “in this topic” switch first, do the @+letters first. As you filter down to fewer and fewer names, if you get to just one name, the dropdown will change to display

[icon] name in all topics and posts or press Enter
[icon] name in this topic

Then you can click the lower choice and you get your @entry auto-completed and you get the x  in this topic entry too. Viola! We have a successful workaround. Then you can finish adding your other search terms, etc.

But you’ll notice the if in my set-up.

This won’t work if the name you’re aiming for is a subset of another longer name. The filtered list will never get down to just one name. e.g. If there are users @SomeName and @SomeNamePlus, you can filter to @SomeNameP and just get the latter name with the two options. But when you stop at @SomeName both names are shown and there’s no way to get to @SomeName with the “in this topic” option attached.

Due to the way the filter/search works with wildcarding and in-string matching, not just StartsWith() matching, there are more of these dual matches with longer names than you might expect. So the workaround often works, but there are several prolific posters for whom it never does. Tres vexing.