All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
36.3k stars 4.13k forks source link

[Frontend] Multiple conversations/projects in the UI #4606

Open enyst opened 2 weeks ago

enyst commented 2 weeks ago

What problem or use case are you trying to solve?

When running with UI, you can have only one conversation. It's perfectly normal to want more than one, each with a name, so that the user can go back to an older one with a click. As I think we all know, LLM and LLM-based apps have "threads" or similar, it's just such a widespread and handy feature.

Describe the UX of the solution you'd like

I'm not sure of the details here, we just need a list of named conversations, so you can switch back to another. Of course, when you switch, it would load the history of that conversation.

Do you have thoughts on the technical implementation?

In the backend, something like this is implemented, albeit in a basic way: one can run main.py with --name session_name and it loads that session.

We may need to understand and implement a bit more, for this to go smoothly:

Additional context UI sessions have a non-descript hash as session name, which as far I recall is "forgotten" once you change the session. It should be possible to store it and restore it. The backend doesn't care (once auth passes), it will load an older session.

mamoodi commented 2 weeks ago

There is a long standing issue that might be related: https://github.com/All-Hands-AI/OpenHands/issues/1744