Leo is unable to say [0], breaking code generation

Something is broken in recent versions of Leo and it’s unable to produce proper code for most languages because anytime it writes [1] or [5] or any other number inside square brackets, it’s completely eaten up before its shown to me. It makes it near impossible to ask Leo to produce code without having to do extensive work trying to fix it up. I’ve started telling Leo to say SQUARE1SQUARE instead of [1] and so on and then I’m mass replacing that manually in my editor with [1] just to work around this, but sometimes it forgets and still lets a [1] slip through which gets eaten.

Here’s an example where [0] is obviously missing:

I’m guessing it’s a bug with the URL citations parsing, where [0] gets parsed into ‘first URL that comes from the web search’. Lemme check with the browser devs

This is still broken btw.

I’ve since found a better workaround: when it produces code, I edit the message and copy the code manually from the editable text area.