brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.94k stars 2.35k forks source link

Expanding Leo should switch focus to the already opened Leo full screen tab #42451

Open srirambv opened 11 hours ago

srirambv commented 11 hours ago

Description

Expanding Leo should switch focus to the already opened Leo full screen tab

Steps to reproduce

  1. Enable AIChatHistory flag
  2. Open Leo in side panel and initiate conversation
  3. Click on Expand view, opens Leo in a full view tab
  4. Go back to tab which has Leo opened in side panel
  5. Click on Expand view again
  6. Opens a second tab instead of focusing on the already opened Leo full screen tab

Actual result

https://github.com/user-attachments/assets/0e35f972-847b-4a8f-bb61-6540a03e1b00

Expected result

Should focus on already opened Leo tab

Reproduces how often

Easily reproduced

Brave version (brave://version info)

Brave 1.74.10 Chromium: 131.0.6778.85 (Official Build) beta (64-bit)
Revision bdff9e7d7314280ddbce1c3ada3abee4ce4a3b32
OS Windows 11 Version 23H2 (Build 22631.4460)

Channel information

Reproducibility

Miscellaneous information

cc: @petemill @mattmcalister