From c471a4794d19b4bd84953fd07b2b7d8532c7326b Mon Sep 17 00:00:00 2001 From: fretuks Date: Tue, 8 Sep 2026 23:39:46 +0200 Subject: [PATCH] make model section open by default and fix headerModelButton reference cleanup --- public/app/dom.js | 2 -- public/index.html | 4 ++-- public/script.js | 3 ++- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/public/app/dom.js b/public/app/dom.js index 25d5128..2fd97f3 100644 --- a/public/app/dom.js +++ b/public/app/dom.js @@ -8,7 +8,6 @@ const messagesDiv = $("messages"); const modelSelect = $("model"); const modelPanel = $("modelPanel"); const modelBadgeName = $("modelBadgeName"); -const headerModelButton = $("headerModelButton"); const headerModelName = $("headerModelName"); const headerPersonaName = $("headerPersonaName"); const modelCount = $("modelCount"); @@ -164,7 +163,6 @@ export { logoutButton, messagesDiv, modelBadgeName, - headerModelButton, headerModelName, headerPersonaName, modelCount, diff --git a/public/index.html b/public/index.html index 70645b0..385abc1 100644 --- a/public/index.html +++ b/public/index.html @@ -138,7 +138,7 @@ -
+
AI model @@ -424,6 +424,6 @@ - + diff --git a/public/script.js b/public/script.js index b4d699d..f9cfbc4 100644 --- a/public/script.js +++ b/public/script.js @@ -35,7 +35,6 @@ import { manageChatMemoryBtn, managePersonaStateBtn, importWorkspaceFileInput, - headerModelButton, headerModelName, headerPersonaName, moveChatFolderBtn, @@ -117,6 +116,8 @@ import { userPersonaList } from "./app/dom.js"; +const headerModelButton = document.getElementById("headerModelButton"); + let isProcessing = false, activeChatId = null, editingPersonaId = null, editingPersonaType = "assistant", currentUsername = ""; let chatSessions = [], currentMessages = [], assistantPersonas = [], userPersonas = []; let activeUserPersonaId = null, currentSummary = null, publishedPersonaIds = new Set();