Closed Bug 2016128 Opened 6 months ago Closed 5 months ago

The Chat conversations are not restored with the previous session

Categories

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

Desktop
Unspecified
defect

Tracking

()

VERIFIED FIXED
150 Branch
Tracking Status
firefox-esr140 --- disabled
firefox147 --- disabled
firefox148 --- disabled
firefox149 --- disabled
firefox150 --- verified
firefox151 --- verified

People

(Reporter: rdoghi, Assigned: echa)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [genai][chat][qa])

Attachments

(2 files)

Attached video restore.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 navigate to a few websites in new tabs.
  2. Open a New Tab and start a conversation with the assistant.
  3. Close and then Start Firefox.
  4. Open the Hamburger menu and restore the previous session.

Expected result

  • The previous chat should be restored along with the New tab.

Actual result

  • The New Tab is restored but the previous conversation is not.
    For a split second the Chat Conversation seems to restore but then its cleared for a New conversation.

Regression range
N/A

this might get fixed with bug 2014053

Depends on: 2014053

The severity field is not set for this bug.
:Mardak, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(edilee)

This issue still occurs even after Bug 2014053 has landed.

Assignee: nobody → echa

Please note that if we are on the active tab where a conversation occured when we close and restart the browser or restore the session, that active tab will not be populated until a user hits the F5 on a keyboard to refresh it.

back navigation bug 2014053 and followup bug 2021402 seem to help but the full conversation isn't consistently reloading. i've noticed previously revisited conversations, e.g., from firefox view, can restore but newly initiated conversations don't get their conversations restored on restart

this also happens when doing undo close window not requiring a full restart/restore

Blocks: 1988017
Severity: -- → S3
Flags: needinfo?(edilee)
See Also: → 2021402
  • add a #contentReady flag to ensure messages aren’t delivered before the child process is ready
  • gate openConversation on #contentReady
  • add a guard in handleEvent to avoid clearing a restored conversation when OpenConversation fires without detail
Whiteboard: [genai][chat] → [genai][chat][qa]
Pushed by echa@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/25e84f11ec5b https://hg.mozilla.org/integration/autoland/rev/d2c127db4803 The Chat conversations are not restored with the previous session r=ai-frontend-reviewers,omarg
Pushed by sstanca@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7019e4266196 https://hg.mozilla.org/integration/autoland/rev/704fd39f485f Revert "Bug 2016128 - The Chat conversations are not restored with the previous session r=ai-frontend-reviewers,omarg" for causing mochitests failures in browser_aiwindow_ask_button.js.

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

  • Revert link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | browser/components/aiwindow/ui/test/browser/browser_aiwindow_ask_button.js | test_ask_button - A promise chain failed to handle a rejection: too much recursion - stack: getAiWindowElement@moz-src:///browser/components/aiwindow/ui/modules/AIWindowUI.sys.mjs:185:27
Flags: needinfo?(echa)
Blocks: 2024028
Pushed by elee@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f30b26c1ef0c https://hg.mozilla.org/integration/autoland/rev/f217b220706f The Chat conversations are not restored with the previous session r=ai-frontend-reviewers,omarg
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch

The too much recursion issue has been fixed by adding a source field to the ai-window:sidebar-toggle event so #onSidebarToggle ignores events originating from openSidebar.

Flags: needinfo?(echa)

Verified as fixed in our latest Beta 150.0b1 and our latest Nightly build 151.0a1 (2026-03-25)

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-found-in-c149][QA-4747][S3] → [qa-found-in-c149][QA-4747][S3][qa-ver-done-c151/b150]
Regressions: 2026239
No longer blocks: 2024028
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: