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

**URL:** <https://community.brave.app/t/leo-is-unable-to-say-0-breaking-code-generation/645752>\
**Category:** Leo AI\
**Created:** [November 15, 2025, 5:24pm UTC](https://community.brave.app/t/leo-is-unable-to-say-0-breaking-code-generation/645752 "2025-11-15T17:24:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tritonio](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/tritonio/32/184937_2.png) [@Tritonio](https://community.brave.app/u/Tritonio)\
**Post date:** [November 15, 2025, 5:24pm UTC](https://community.brave.app/t/leo-is-unable-to-say-0-breaking-code-generation/645752/1 "2025-11-15T17:24:38Z")

</div>

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:

 ![arraysissue](https://global.discourse-cdn.com/brave/original/3X/9/d/9d010b4ab9329d2276137bad962bd7fdd7f3f293.png)

---

<div class="post-metadata">

**Author:** ![ste](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/ste/32/207151_2.png) [@ste](https://community.brave.app/u/ste)\
**Post date:** [November 15, 2025, 5:37pm UTC](https://community.brave.app/t/leo-is-unable-to-say-0-breaking-code-generation/645752/2 "2025-11-15T17:37:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tritonio](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/tritonio/32/184937_2.png) [@Tritonio](https://community.brave.app/u/Tritonio)\
**Post date:** [March 18, 2026, 6:40pm UTC](https://community.brave.app/t/leo-is-unable-to-say-0-breaking-code-generation/645752/3 "2026-03-18T18:40:24Z")

</div>

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.
