Closed Bug 2016402 Opened 6 months ago Closed 6 months ago

Switching Tabs sidebar assistant incorrectly restores cleared chat, other chat followups, generally wrong state

Categories

(Core :: Machine Learning: Frontend, defect, P1)

Desktop
Unspecified
defect
Points:
3

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox-esr140 --- disabled
firefox147 --- disabled
firefox148 --- disabled
firefox149 --- wontfix
firefox150 --- verified

People

(Reporter: rdoghi, Assigned: ngrato)

References

(Blocks 1 open bug)

Details

(Whiteboard: [genai][chat])

Attachments

(3 files)

Attached video ClearingChats.mp4

Found in

  • Nightly 149.0a1 (2026-02-11)

Affected versions

  • Nightly 149.0a1 (2026-02-11)

Affected platforms

  • All

Steps to reproduce

  1. Open a Smart Window and ask the assistant to provide links to an Amazon website.
  2. Reach a Website in a different tab.
  3. Continue the conversation for the amazon website in the Sidebar.
  4. Select the New Chat button in order to clear the conversation.
  5. Change to a different tab and then back on the tab with the amazon website.

Expected result

  • The Chat sidebar should be empty.

Actual result

  • The previous chat is restored even though a user selected the New chat option before switching tabs.

Regression range
N/A

Blocks: 2006124

might get fixed with bug 2015921

Depends on: 2015921
Assignee: nobody → ngrato
Points: --- → 3

Found in

Nightly 149.0a1 (2026-02-11)

Affected versions

Nightly 149.0a1 (2026-02-11)

Affected platforms

All

Steps to reproduce

Open a Smart Window and ask the assistant to provide links to an Amazon website.
Reach a Website in a different tab.
Continue the conversation for the amazon website in the Sidebar.
Select the New Chat button in order to clear the conversation.
Change to a different tab and then back on the tab with the amazon website.

Expected result

The Chat sidebar should be empty.

Actual result

The previous chat is restored even though a user selected the New chat option before switching tabs.

Regression range
N/A

This issue still occurs in our latest Build 149.0a1 (2026-02-20) ID 20260220092058

Summary: Switching Tabs will restore a cleared chat from the Sidebar → Switching Tabs sidebar assistant incorrectly restores cleared chat, other chat followups, generally wrong state
Attached video MicCut.mp4

Please also note that even if the user starts a different conversation and switches tabs, the previous conversation would be restored instead of current on going conversation and because of this qa considers this issue an s2. I will update the tag.

QA Whiteboard: [qa-found-in-c149][QA-4747][S3] → [qa-found-in-c149][QA-4747][S2]
Pushed by ngrato@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/590540ea2a40 https://hg.mozilla.org/integration/autoland/rev/e8d38ac82e18 Switching Tabs will restore a cleared chat from the Sidebar r=omarg,ai-frontend-reviewers
Pushed by sstanca@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1b83275f5f76 https://hg.mozilla.org/integration/autoland/rev/402d2744196c Revert "Bug 2016402 - Switching Tabs will restore a cleared chat from the Sidebar r=omarg,ai-frontend-reviewers" for causing mochitests failures in browser_smartwindow_tab_switching.js.

Reverted this because it was causing mochitests failures in browser_smartwindow_tab_switching.js.

  • Revert link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | browser/components/aiwindow/ui/test/browser/browser_smartwindow_tab_switching.js | test_tab_switch_shows_starters_for_empty_conversation - Uncaught exception in test - Starters should still display on repeated switch to empty conversation - timed out after 50 tries.
Flags: needinfo?(ngrato)
Pushed by ngrato@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b5bd25015674 https://hg.mozilla.org/integration/autoland/rev/bbe453be9d40 Switching Tabs will restore a cleared chat from the Sidebar r=omarg,ai-frontend-reviewers
Regressions: 2019757
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/dc89661c5cdd https://hg.mozilla.org/integration/autoland/rev/8ab5ae3cc678 Revert "Bug 2016402 - Switching Tabs will restore a cleared chat from the Sidebar r=omarg,ai-frontend-reviewers" for causing failures at browser_smartwindow_tab_switching.js.
Pushed by chorotan@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1a09d5891a39 https://hg.mozilla.org/mozilla-central/rev/f807fe2893f3 Switching Tabs will restore a cleared chat from the Sidebar r=omarg,ai-frontend-reviewers
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch

Verified as fixed in our latest Nightly 150.0a1 (2026-03-02)

QA Whiteboard: [qa-found-in-c149][QA-4747][S2] → [qa-found-in-c149][QA-4747][S2][qa-ver-needed-c150/b149]
See Also: → 2020878
Flags: needinfo?(ngrato)
Blocks: 2018977
Blocks: 2024781
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: