smartbar memory toggle should be shown when memories exist
Categories
(Core :: Machine Learning: Frontend, enhancement)
Tracking
()
People
(Reporter: Mardak, Assigned: chloezhou)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [genai][input])
Attachments
(1 file)
bug 2011323 added memory toggle with a disabled state but should be hidden if no memories or memories off https://www.figma.com/design/5KuePTGmOEUFyCHBHCsGim/AI-Mode-%E2%80%94%C2%A0MVP-Scope-Design?node-id=20194-484170
Updated•6 months ago
|
| Reporter | ||
Comment 1•6 months ago
|
||
bug 2017428 updated the logic to check for either generation pref are enabled, but the desired behavior is still only show the toggle if there's memories
chidam suggested getAllMemories check if non-empty https://searchfox.org/firefox-main/rev/83d1a08db47b91a4d53341a799745caac9c38bde/browser/components/aiwindow/models/memories/MemoriesManager.sys.mjs#395
Updated•5 months ago
|
Comment 2•5 months ago
|
||
Followup of fix in bug 2017428 that implemented
Both pref on - toggle show
Both pref off - toggle hide
Scope of this bug is to use MemoriesManager.getAllMemories() check to see non-empty and use logic to show/hide toggle based of memory existence as below
Both pref on - show
Both pref off and memory exist - show
Both pref off and memory doesn’t exist - hide
See discussion in thread here and here
| Assignee | ||
Updated•5 months ago
|
| Assignee | ||
Comment 3•5 months ago
|
||
Previously the memories toggle in the AI Window smartbar was only visible when at least one of the generateFromConversation/generateFromHistory prefs was enabled. This meant users who disabled both prefs after accumulating memories could no longer see or use the toggle.
Now the toggle is shown whenever memories exist, regardless of pref state. The component observes memory-store-changed so the toggle hides immediately when the last memory is deleted from settings.
Tests cover sidebar and fullpage modes for all three visibility states: prefs off + memories exist (shown), all memories deleted (hidden), and prefs turned on (shown).
Updated•5 months ago
|
Comment 5•5 months ago
|
||
| bugherder | ||
Comment 6•5 months ago
|
||
This issue is verified as fixed in our latest Beta 150.0b1 and our latest Nightly build, however there is a scenario where if we disable both preferences and we have a few memories saved the Toggle button is still displayed as ON, I have logged this issue for it Bug 2026595
Description
•