Diff between revisions no longer visible when there is a hidden revision in between

I hear your concerns here.

LLMs are great at finding edge cases and in this case we were treating hiding diffs as a security feature, not as a cosmetic feature. So edge cases were found and edge cases fixed.

I think that if your intent was for turning off edit_history_visible_to_public just to be a cosmetic thing I would recommend just leaving it on, cosmetics can be done in a theme component if we must.