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

* Add chat sessions to the desktop application
* Increase width of the main chat body to 90vw
* Update the version of electron
* Render the default message if chat history fails to load
* Merge conversation migrations and fix slug setting
* Update the welcome message, use the hostURL, and update background color for chat actions
* Only update the window's web contents if the page is config
This commit is contained in:
sabaimran
2024-02-11 02:35:28 -08:00
committed by GitHub
parent 1412ed6a00
commit 69344a6aa6
4 changed files with 531 additions and 56 deletions

View File

@@ -225,7 +225,8 @@ function pushDataToKhoj (regenerate = false) {
.finally(() => {
// Syncing complete
syncing = false;
if (win = BrowserWindow.getAllWindows()[0]) {
const win = BrowserWindow.getAllWindows().find(win => win.webContents.getURL().includes('config'));
if (win) {
win.webContents.send('update-state', state);
}
});