Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multiple chat sessions in the desktop application #639

Merged
merged 16 commits into from Feb 11, 2024

Conversation

sabaimran
Copy link
Collaborator

Incoming

Given #638 , add the same treatment to the desktop application. Allow users to create multiple chat sessions to maintain parallel conversations with Khoj.

- Allow users to create multiple chat sessions and manage them
- Give chat session slugs based on the most recent message
- Update web UI to have a collapsible menu with active chats
- Move chat routes into a separate file
- Add a new field to the conversation object
- Update UI to add a threedotmenu to each conversation
…khoj into features/desktop-multiple-chat-sessions
Copy link
Member

@debanjum debanjum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Can you attach screenshots of the chat view with the chat sessions pane, would be good to document/look at

Base automatically changed from features/multiple-chat-sessions to master February 11, 2024 10:18
fetch(`${hostURL}${editURL}` , { method: "PATCH" })
.then(response => response.ok ? response.json() : Promise.reject(response))
.then(data => {
conversationButton.innerHTML = newTitle;

Check warning

Code scanning / CodeQL

DOM text reinterpreted as HTML Medium

DOM text
is reinterpreted as HTML without escaping meta-characters.
@sabaimran sabaimran merged commit 69344a6 into master Feb 11, 2024
5 checks passed
@sabaimran sabaimran deleted the features/desktop-multiple-chat-sessions branch February 11, 2024 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants