Description of the issue:
The Leo AI in the Brave sidebar consistently shows a network error on the first attempt of any action. It displays the error: “There was a network issue connecting to Leo, check your connection and try again.” The action succeeds immediately after clicking the “Retry” button, but the initial failure is persistent and occurs every time.
How can this issue be reproduced?
Type a sentence into any text input box (like a forum reply, email, etc.).
Highlight the sentence you just wrote.
Right-click the highlighted text, hover over ‘Leo AI tools’, and select ‘Improve’ from the Rewrite section.
The network error appears. Clicking “Retry” is required for it to work.
Expected result:
The Leo AI tool should process the request on the first attempt without displaying a network error.
Brave Version( check About Brave):
1.80.124 (Official Build) (arm64)
Additional Information:
This issue is occurring on a MacBook Pro (M1 Pro) running macOS 15.5 (24F74). My internet connection is stable and all other browser functions work correctly. The problem is specific to the first attempt of any Leo AI action initiated from the right-click context menu on text within an input field.
