Sidebar Assistant Memories icon stays toggled off
Categories
(Core :: Machine Learning: Frontend, defect)
Tracking
()
People
(Reporter: pdahiya, Assigned: chloezhou)
References
(Blocks 1 open bug)
Details
(Whiteboard: [genai][chat])
Attachments
(1 file, 1 obsolete file)
|
844.85 KB,
image/png
|
Details |
STR
- Click ask button to open sidebar assistant and toggle memory icon off
- Right click on any link on the page and open in a new tab
- Click ask button to open sidebar assistant
ER
Memories icon in sidebar assistant should not be toggled off
AR
Memories icon carries over state from previous tab and stays off
Updated•6 months ago
|
| Assignee | ||
Comment 1•5 months ago
|
||
The memories toggle in the AI sidebar was resetting to the default (on) state
when switching between tabs. This was caused by three issues:
-
The role check in #syncSmartbarMemoriesStateFromConversation compared m.role against the string "user" instead of the numeric MESSAGE_ROLE.USER (0), so it never found the last user message.
-
#syncSmartbarMemoriesStateFromConversation was not called in openConversation, so even when a conversation was restored the toggle state was not synced.
-
The memories toggle state was not preserved across tab switches. The tab state manager now snapshots the sidebar's memoriesToggled value before switching away and restores it after openSidebar completes on the new tab. openSidebar is now awaited since it is async and resets the toggle via onCreateNewChatClick(). #selectedTab is also initialized in #init() so the first tab switch can snapshot correctly.
Updated•5 months ago
|
Updated•5 months ago
|
Comment 2•5 months ago
|
||
Comment 3•5 months ago
|
||
This issue is verified as fixed in our latest Nightly 151.0a1 (2026-03-25) but I did encounter another issue related to it which I filed here : Bug 2026173
Description
•