brave / brave-browser

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

[AI Chat] Persist Conversations Across Sessions #42037

Open jonathansampson opened 3 weeks ago

jonathansampson commented 3 weeks ago

Requested on X (i.e., https://x.com/annadapb/status/1852529351541346307) and elsewhere, several users have expressed a desire to have conversations with Leo persisted across browsing sessions. It's worth noting that while there is presently no way to store conversation history, Brave has already shipped functionality for clearing history (see https://github.com/brave/brave-browser/issues/31441). Presumably, conversation history will be implemented somewhat differently for BYOM. Likewise, some consideration will need to be given to questions like Is the conversation associated with a particular tab/page? Restoring a previous conversation from the chat history may mean we need to also stand up a previous tab/page for the purpose of continuing the discussion.

Related issues:

petemill commented 3 weeks ago

There is a combination of issues to realize this feature, and are already being tracked at:

Many are already merged such as introducing the AIChatHistory feature flag, as well as:

The implementation of storage is complete pending reviews and some privacy review required changes at:

There is also a spec document and roadmap tracking issue.

Presumably, conversation history will be implemented somewhat differently for BYOM

No differences needed for conversations on different models AFAIK.