Okay, so I came up with an example using a "blog.kagi.com/*" lens.
To confirm that search results will be returned, I used a common query, "site:blog.kagi.com search". This returns 19 relevant results. If this is a terrible test, let me know, as I'm only differentiating between the existence and non-existence of results. The search result quality is not something I'm concerned about.
Now when creating a lens, I set the following fields:
Name of the lens: test
Describe what the lens does...: this is a test
The style of how results...: Default
Lock search results to a...: Choose Region (left untouched)
Include only these sites in results...: blog.kagi.com/*
...
Set a keyword to use as a bang...: !test
After clicking "Save", it takes me back to the "Active Lenses" page. If I then create a new tab (less than 10 seconds on the "Active Lenses" page), navigate to https://kagi.com/
and use the query !test search
(https://kagi.com/search?q=search&l=13 for my test lens). It returns no results. The host that the request is being submitted to is: 34.111.242.115.
Another symptom that might help is that it doesn't seem to occur when editing an already-existing lens...It explicitly needs to be a lens number that hasn't been used yet. In my case it was 13, but while re-testing it eventually started to work and I was not able to reproduce with that same lens. I created another lens, this time using kagi.com/*
with the bang set to !mytest
which resulted in the lens id of 14. Then afterwards, the query !mytest kagi
successfuly (or unsuccessfully) returns the "We haven't found anything" page.
Also, I can probably record an HTTP Archive if there's still the issue of reproducing. It's probably worth noting that I'm also using the Kagi Search plugin, but the tests themselves were executed by explicitly using the https://kagi.com frontend page.