After recently updating from Drupal 9.5.11 to 10.1.5 we have spotted some issues with the results displayed in the media library widget.
Basically if I filter results, for example on the string "horris" then insert a new image with the string "horris" in the name, when I the filter on "horris" after the addition, the results are incorrectly returned, visually they look ok, but the numbering applied to the results is broken so for example I might on inspection of the HTML see 2 x 0 ID result entries (both results in the screen grabs have the same ID and value). This means that I can then select an image and get a different one inserted into the node field (in my screen grab scenario, selecting the "horris" image results in "horris 1" getting added to my underlying node's field.)
Clearing redis cache resolves the issue, until it happens again. I have for the time being disabled caching on the media library views which works-around the issue but i'd like to understand why this occurring now and wasn't an issue in Drupal 9. Thanks