I currently have one Lens with a customized bang on my account. I also have Kagi set as my default search engine in Chrome by using the Kagi Search plugin.
When I search using that bang in the Chrome searchbar, I am redirected to the following url: https://kagi.com/search?l=6&q=<my search string here> -- this is not my custom bang, this is the PDFs lens.
When I go to kagi.com and search in the page's search bar using the same string, I receive the same error -- it returns the PDF lens instead of my custom lens.
However, when I go to kagi.com, type in the bang and search string, and then explicitly pick it from the dropdown list of search suggestions, I am redirected to the following url: https://kagi.com/search?q=<my search string>&l=5
It appears that searching by a bang automatically is returning a Lens ID that is off by one, and only explictly picking the bang from the suggestions menu works.
I expected to be redirected to a search within my custom lens. Instead, I was redirected to a search within the built-in PDF lens.