Bug Report: Leo AI truncates text after "@" symbol

Hi,

I’ve discovered a bug where Leo automatically deletes everything after a specific character appears in the text. When I paste content containing the “@” symbol, all text following it gets removed.

The issue seems related to the system attempting to match browser tabs or boomarks, but the process fails incorrectly. Instead of treating “@” as plain text, it appears to be interpreted as markup.

This is particularly problematic when the symbol appears in:

  • Email addresses
  • Technical logs
  • Code snippets

The entire content after “@” is stripped, making it impossible to work with such text in Leo.

→

Oh good spot, I’ll pass this on to the team - thanks!

In the meantime - just found a little workaround that may work for you:

If you click the ‘send message’ button on the bottom right instead of hitting enter it should work

We’ll work on making the flow smoother, but hopefully that unblocks you in the meantime

Thanks! Have a nice day :grinning_face:

QA team raised the issue here for anyone who wants to follow along: https://github.com/brave/brave-browser/issues/51874